-
Notifications
You must be signed in to change notification settings - Fork 19
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
Indices metadata - numeric bounds #894
Conversation
Might yet need more work to be properly general but keywords are cleaner than booleans as the latter get complex quickly.
Default is any real value.
This simplifies later parsers when we export to JSON etc.
Returning a JSON string resulted in it being double encoded.
This makes it easier for metadata consumers as they don't need to look up the hierarchy.
Am I right in assuming that a JSON file containing index properties will be created during the Biodiverse run? |
The JSON file is not created each run but the data components are. It just needs a call to stitch them all together. Possibly it should be built each release, but the final list depends on the basedata components (mainly the hierarchical label ratios which might soon be archived). A one liner for a unix shell is below. The result can be redirected to a file, although the first line will be unrelated logging and can be removed. The call assumes you are at the top level of the Biodiverse repo but can be adjusted by changing the include path in
If it's easier I can add a script to the bin dir. Edit: Windows version for Cmd shell is:
|
Provides metadata for the numeric bounds of any non-categorical indices.
Also provides these data as JSON.
There are currently no categorical indices in Biodiverse. These can be supported if and when implemented. (CANAPE is a compound index not generated by calls to a Biodiverse::Indices object).
Updates #889