-
Notifications
You must be signed in to change notification settings - Fork 19
Implement exponential year precision #12
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
Comments
@aweakley just wanted to check on this test: python-edtf/edtf/parser/tests.py Lines 183 to 185 in 613ccf5
The year should be
I think that this should be the same whether E is used to shorten the date or not? |
I agree, I think it should be the same with or without the E. |
Great. And those bounds also make sense? |
I think so, but I'm just wondering about this bit "..estimated to be 171010000" |
I don't see any exponential, long or significant digit examples using date qualifiers at least ... |
I think this implies that lower/upper_strict should take account of the full year: https://en.wikipedia.org/wiki/Significant_figures
|
That makes sense, but the Some of the other EDTF examples:
The definition for significant digits is: "A year (expressed in any of the three allowable forms: four-digit, 'Y' prefix, or exponential) may be followed by 'S', followed by a positive integer indicating the number of significant digits." That means it's not just |
This is really clear to me: I was a bit surprised by the Wikipedia article really and I wonder how far we're supposed to go if we follow that logic? What about the year 123456789S1 - surely all those digits can't be assumed to be significant when the Reading the article's reference here: https://chem.libretexts.org/Bookshelves/General_Chemistry/Chem1_(Lower)/04%3A_The_Basics_of_Chemistry/4.06%3A_Significant_Figures_and_Rounding it gets more confusing, because they say something different to what the EDTF standard says:
What do you think about adding a new |
What would |
I think it would be the year but without the significance notation: |
I have some WIP on this that I'll post soon. Just to confirm so I finish updating the tests - this is what we're looking for?
|
This is resolved by #56 |
EDTFs of the form
y17101e4p3
mean "Some year between 171000000 and 171999999, estimated to be 171010000 ('p3' indicates a precision of 3 significant digits.)"At the moment, the p value is ignored, and
lower_
andupper_
values are identical, being just the base times 10 to the exponent. The lower and upper bounds should vary by the indicated precision.The text was updated successfully, but these errors were encountered: