Background

is an open-source Python simulation framework that brings together major processes within a real ecosystem: plant growth and demography, microclimate, hydrology, soil biotic and abiotic processes, and the growth and demography of heterotrophs. It connects models of plants, animals, soils and the abiotic environment, allowing researchers to investigate how matter and energy move between these domains and to study ecosystem stability, resilience and sustainability.

The model is deliberately ambitious: it supports exploration of alternative scenarios, including environmental change and altered ecological interactions, as well as parameter sensitivity analyses. That scientific breadth depends on a software architecture that enables independently developed scientific components to work reliably together, while remaining understandable and extensible for a multidisciplinary research team.

The project is led by Prof. Robert Ewers, from the Department of Life Sciences and funded by the . The research team, including the data science team, based at SEARRP, in Malaysia, can be found in the .

Our Contribution

The RSE Team worked alongside the Virtual Ecosystem research team as a long-term software engineering partner. The engagement combined architectural advice, targeted development and skills transfer, with the aim of helping the project establish sustainable ways of developing a complex community research codebase. Specific aspects that were covered at different stages of the project are:

Designing for integration and extension

The RSE Team advised on the project’s architectural design, helping to shape a modular framework in which scientific models can be developed, connected and evolved without losing sight of their shared interfaces and data needs. This work supported the project’s aim of providing a modular tool for comparing approaches to ecosystem modelling.

A particular focus was the shared variables system: a common mechanism for defining, tracking and documenting the variables exchanged between model components. The RSE Team also contributed specific development work on the disturbances capability, providing infrastructure for representing external perturbations in simulations. These capabilities support scientific questions about how ecosystems respond to environmental stressors and disturbance.

Embedding good software engineering practice

The RSE Team trained and supported researchers to adopt good software engineering practices throughout development. This included collaborative version control and review workflows, automated quality checks, testing, documentation and reproducible development environments. The resulting project workflow uses issue-driven development, branches and pull requests, review before merging, continuous integration checks, automated formatting and static type checking, and unit tests.

This approach makes contributions from a cross-disciplinary team easier to discuss, review and maintain. It also creates a clearer route for new contributors to move from a small initial change to adding a substantial scientific module.

Supporting efficient use of ³Ô¹ÏºÚÁÏ HPC

Finally, the RSE Team was also involved in the profiling of the software and advised on efficient use of ³Ô¹ÏºÚÁÏ’s High Performance Computing (HPC) service. ³Ô¹ÏºÚÁÏ's HPC is designed for non-interactive, high-throughput and highly parallel compute- and data-intensive work. This support helped the research team understand the right job settings and address performance considerations when running computational experiments and larger simulation workloads.

Outcomes

The collaboration has helped establish Virtual Ecosystem as an openly developed research software project with a documented, quality-assured development process. The project offers a Python package, user documentation, an example simulation and guidance for configuring and running ecological simulations with users’ own data.

By combining research-led scientific development with RSE expertise, the project has strengthened the foundations needed to develop an integrated ecosystem model over the long term. Researchers can build and test new components within a shared framework, while users can run scenarios and sensitivity experiments to investigate ecosystem behaviour.

More broadly, the engagement demonstrates how architectural guidance, focused software development, skills transfer and HPC support can enable a research team to retain ownership of its code while building the engineering practices required for reliable, reusable and sustainable research software.

Testimonials

The Virtual Ecosystem team (Department of Life Sciences, ³Ô¹ÏºÚÁÏ)

The Research Software Engineering team has been involved with the development of the Virtual Ecosystem almost from the start of the project. We already knew enough to talk the talk about good software engineering practices: code review processes, continuous integration, unit testing and code quality assurance tools. However, having the RSE team within the project made sure that we actually walked the walk of good software culture. A large part of that has been in enabling us to build software engineering skills across the team, giving us the independence to maintain good practices and high quality code. The RSE team have also been there throughout to help review code and implement new features, providing a wealth of timely feedback and wider programming experience that has been invaluable to the success of the project.