-
Notifications
You must be signed in to change notification settings - Fork 4
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
Units & Prefixes #269
Comments
Section Units and Conversions of the 3.1 API Definition (common search API) deliverable document contains more info about this. |
Ultimately, we need the metadata to be cleaned up and made machine readable for Pint and other maths/unit libraries, but the overall workflow to deal with different units would look something like this:
|
- Using 0.17 which has Python 3.6 compatibility
As discussed with @louise-davies, this feature won't be used by ISIS currently, even if we implemented it. ISIS don't use
This is because while there are meaningful units stored for As a result of these findings, I'm marking this issue with the 'wontfix' label. Currently, this is a metadata issue that's much bigger than the search API. Creating a meaningful test environment to implement this feature would be possible, but it would be time consuming and certainly not viable for the deadline of the deliverable. We would welcome development help from other facilities who would make use of this feature. |
thanks @MRichards99 and @louise-davies - I agree with the approach, and we can get back to implementing this feature once we look at the metadata issues. Indeed, other facilities might want to tackle this and contribute back to the code base and that would be great. |
- This commit also features a list of units used by ISIS that are ingestable by Pint
Description:
This is the least discussed part of the Search API and we've discussed using Pint for this. I have verified that Pint supports all units and prefixes defined by the documentation in the example implementation (May 2021) so it should be suitable for the task.
At this point in time, I'm not entirely sure how this will be implemented, but is an important part of the deliverable nonetheless.
Further thinking required.
Acceptance criteria:
The text was updated successfully, but these errors were encountered: