Refactored repo to include conda environment files and other meta files for repo organization
Add C++ implementation of the tree simulation
Add CMake build configuration to streamline building
How to test
Checkout feature branch port_to_cxx
Create a new conda environment with the newly added conda environment file, environment.yml. For example, when using micromamba, the command use to create the environment would be micromamba create -f environment.yml.
Activate the environment.
At the root of the repository, use the following commands to build the binary
mkdir build
cd build
cmake ..
cmake --build .
Use ./TreeGrowthSim to run the simulation
Visualize the results
cd ..
python scripts/visualization.py build/tree_growth_simulation.h5
It is also possible to use H5Web plugin from VSCode to view the data directly
Note: the new visualization script can also read the *.npy file produced by the Python simulator.
This PR introduces the following changes:
How to test
port_to_cxx
environment.yml
. For example, when usingmicromamba
, the command use to create the environment would bemicromamba create -f environment.yml
../TreeGrowthSim
to run the simulation