Skip to content

RangeShifter 3.0 merge (develop into main)#79

Merged
JetteReeg merged 936 commits intomainfrom
develop
Mar 24, 2026
Merged

RangeShifter 3.0 merge (develop into main)#79
JetteReeg merged 936 commits intomainfrom
develop

Conversation

@JetteReeg
Copy link
Copy Markdown
Collaborator

The develop branch includes:

  • the new genetics module from RScore/new_genetics

  • spatial demography

    • the three demographic rates fecundity, development and survival can vary spatially for models using habitat suitability maps. This feature was first published in Malchow et al (2022), who developed it for the R-pkg and is now incorporated in the next release of 3.0
  • translocation feature:
    
    • introduces a new class for management features. So far it only holds translocation of individuals. Individuals with given characteristics in a given cell or patch are randomly selected and translocated/added to a different given cell or patch

Additional changes:

  • the R-pkg version now allows all spatial inputs to be parsed as R matrices. This function is specifically suited for bayesian calibration
    
  • for the batch interface, reproduction and transfer can run in parallel to speed up running time
    

As the changes are major and complex. The merge will be done locally and not via GitHub. This pull request is aimed for providing an overview of all changes.

The RScore subtree repository was already merged at this point in time.
Next step is to run a git subtree pull --prefix src/RScore RScore main before running the 'git merge develop command'

After the merge, a new release should be made with version number 3.0.0 and the prepared release note.

nboullis and others added 30 commits March 19, 2025 16:32
Add a mutex to ensure that two threads don’t simultaneously try to
create a new population in a patch.
Add a mutex and make Population::nInds atomics to prevent a race
condition when two threads simultaneously try to add/remove
individuals into/from the same population.
…parallel loop.

Add a mutex to ensure that two threads don’t simultaneously write into
the movement paths file.
StreamErrorR(): path*File is not known -> must be habfile/pchfile
R interface still outputs visits (SMS heat maps) -> needs the saveVisits option
Replace the std:queue memory used for SMS with an ad hoc implementation using a circular buffer, to reduce memory consumption.
…tptr values with pointers to Population or Species.
…intptr values with pointers to SubCommunity.
…it is not used to store a pointer and was anyway initalised with an int.
updated testIndividual.cpp according to current new_genetics version
…_new_genetics_spatial_demog_merge

conflicts solved; now in sync with RScore/transloc_new_genetics_spatial_demog_merge
Ch-Bun and others added 27 commits January 26, 2026 14:15
solved conflicts; compiling successfull on Win11
RScore subtree is in line with RScore/develop
now returning spatial rasters (for cell-based models) or a data.frame (for patch based models) for total abundances per cell or specific (user defined) stages
- version number
- improved git subtree documentation
- removed Théo as maintainer in README.md
- improved structure in CONTRIBUTING.md
- deleted deprecated lines in Landscape.cpp
@JetteReeg
Copy link
Copy Markdown
Collaborator Author

@TheoPannetier Do you know why the pull request is not closed? I have run a git merge origin/develop on my laptop and pushed the commits after resolving conflicts + doing some additional edits on README.md, CONTRIBUTING.md, ... With the RScore merge github automatically detected that the merge was done. Shall we close the PR?

@JetteReeg JetteReeg merged commit 45b74ff into main Mar 24, 2026
8 checks passed
@JetteReeg
Copy link
Copy Markdown
Collaborator Author

Ok, the issue solved itself - I guess a commit was missing at some point. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants