Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version number in custom building #9542

Open
byzheng opened this issue Dec 12, 2024 · 2 comments
Open

Version number in custom building #9542

byzheng opened this issue Dec 12, 2024 · 2 comments
Labels
Improvement An enhancement to an existing functionality or system

Comments

@byzheng
Copy link
Contributor

byzheng commented Dec 12, 2024

Describe the new feature

Models --version will display the version number. However it will show APSIM 0.0.0.0 for custom building.

Is it possible to display the actual version number or build number? The reason I am asking is as it will be useful to develop third party application (e.g. R) to check support version.

@byzheng byzheng added the Improvement An enhancement to an existing functionality or system label Dec 12, 2024
@par456
Copy link
Collaborator

par456 commented Dec 12, 2024

Not really, the code in the git repo doesn't track what the last PR merged in was and what build number it was assigned, that is all done in the build scripts when the release builds are created.

If someone is working in a debug version of apsim, you really can't assume anything about the code they are working with, even if you knew when their branch was last updated from main.

What's the reasoning behind trying to track that version number? Is that for checking other user's, or your own simulations? We might be able to suggest a better alternative to look for.

@byzheng
Copy link
Contributor Author

byzheng commented Dec 17, 2024

In my R package, I provided codes to generate new apsimx file (i.e. cultivar parameters and new models). But this function depends on the actual of apsimx file. I would like to check the version number of Models to decide whether the following codes should be processed.

I understand the file number in the apsimx indicate the file structure, but which is also not always available especially part of apsimx file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement An enhancement to an existing functionality or system
Projects
Status: Backlog
Development

No branches or pull requests

2 participants