-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Quantities with structured units #11775
Commits on Jul 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1101e28 - Browse repository at this point
Copy the full SHA 1101e28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13ee02b - Browse repository at this point
Copy the full SHA 13ee02bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 766155c - Browse repository at this point
Copy the full SHA 766155cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf5a03d - Browse repository at this point
Copy the full SHA bf5a03dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b065087 - Browse repository at this point
Copy the full SHA b065087View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86d3ee2 - Browse repository at this point
Copy the full SHA 86d3ee2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17edc08 - Browse repository at this point
Copy the full SHA 17edc08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55bb52a - Browse repository at this point
Copy the full SHA 55bb52aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2175b4 - Browse repository at this point
Copy the full SHA b2175b4View commit details -
Be a bit more careful with dtype and the recursive replacement.
In particular, subarrays such as (3,4)f8 should be replaced in their entirety by 'O', so cannot really use the numpy.ma version.
Configuration menu - View commit details
-
Copy full SHA for 78e6c08 - Browse repository at this point
Copy the full SHA 78e6c08View commit details -
Rework so that StructuredUnit parts can be StructuredUnit.
This makes it easier to recurse, especially in the initialization.
Configuration menu - View commit details
-
Copy full SHA for cb6476f - Browse repository at this point
Copy the full SHA cb6476fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f867750 - Browse repository at this point
Copy the full SHA f867750View commit details -
Configuration menu - View commit details
-
Copy full SHA for f47728b - Browse repository at this point
Copy the full SHA f47728bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57fd702 - Browse repository at this point
Copy the full SHA 57fd702View commit details -
Configuration menu - View commit details
-
Copy full SHA for e458f55 - Browse repository at this point
Copy the full SHA e458f55View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5a3d0a - Browse repository at this point
Copy the full SHA c5a3d0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3994bd4 - Browse repository at this point
Copy the full SHA 3994bd4View commit details -
Introduce StructuredUnit multiplication and division.
Including with structured array to get StructuredQuantity.
Configuration menu - View commit details
-
Copy full SHA for 9addda8 - Browse repository at this point
Copy the full SHA 9addda8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 674e100 - Browse repository at this point
Copy the full SHA 674e100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7715577 - Browse repository at this point
Copy the full SHA 7715577View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd71c72 - Browse repository at this point
Copy the full SHA fd71c72View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef94e71 - Browse repository at this point
Copy the full SHA ef94e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d377a5 - Browse repository at this point
Copy the full SHA 1d377a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b7aaba - Browse repository at this point
Copy the full SHA 1b7aabaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c1f9cf - Browse repository at this point
Copy the full SHA 6c1f9cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41c4d18 - Browse repository at this point
Copy the full SHA 41c4d18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad9b2b - Browse repository at this point
Copy the full SHA 6ad9b2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13ecc8b - Browse repository at this point
Copy the full SHA 13ecc8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f43689 - Browse repository at this point
Copy the full SHA 7f43689View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49887af - Browse repository at this point
Copy the full SHA 49887afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91a502f - Browse repository at this point
Copy the full SHA 91a502fView commit details -
Make StructuredUnit its own class, rather than a subclass of np.void.
Very little reason ever to use the np.void methods, and problem with override of __eq__ and __ne__. This way, perhaps some factoring out of methods with UnitBase may be possible.
Configuration menu - View commit details
-
Copy full SHA for e155cec - Browse repository at this point
Copy the full SHA e155cecView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcbda52 - Browse repository at this point
Copy the full SHA bcbda52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e90646 - Browse repository at this point
Copy the full SHA 6e90646View commit details -
Configuration menu - View commit details
-
Copy full SHA for 420826d - Browse repository at this point
Copy the full SHA 420826dView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa0013d - Browse repository at this point
Copy the full SHA aa0013dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45111f1 - Browse repository at this point
Copy the full SHA 45111f1View commit details -
Move all StructuredQuantity functionality in Quantity itself.
So, one recognizes a structured Quantity simply from the unit.
Configuration menu - View commit details
-
Copy full SHA for afd2052 - Browse repository at this point
Copy the full SHA afd2052View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c5f3ac - Browse repository at this point
Copy the full SHA 5c5f3acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4fa7d - Browse repository at this point
Copy the full SHA 0b4fa7dView commit details -
Make StructuredUnit also indexable by number.
Simple to do by storing units in void. Also adjust the erfa quantity wrappers to become independent of field name -- although pyerfa itself does not yet support that.
Configuration menu - View commit details
-
Copy full SHA for b474796 - Browse repository at this point
Copy the full SHA b474796View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e4a0d9 - Browse repository at this point
Copy the full SHA 2e4a0d9View commit details -
In erfa, can now import StructuredUnit on top.
This since Quantity is no longer imported in structured.py
Configuration menu - View commit details
-
Copy full SHA for 08793a6 - Browse repository at this point
Copy the full SHA 08793a6View commit details -
Correct implementation of _normalize_tuples
Plus tests and some cleanup.
Configuration menu - View commit details
-
Copy full SHA for 16664df - Browse repository at this point
Copy the full SHA 16664dfView commit details -
Tests with structured MaskedQuantity.
Plus a few small changes to ensure those work.
Configuration menu - View commit details
-
Copy full SHA for 1782e64 - Browse repository at this point
Copy the full SHA 1782e64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 086a941 - Browse repository at this point
Copy the full SHA 086a941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73bfbe7 - Browse repository at this point
Copy the full SHA 73bfbe7View commit details -
Rename .names attribute to .field_names.
This to avoid possible clash with UnitBase.names.
Configuration menu - View commit details
-
Copy full SHA for aaf9f5e - Browse repository at this point
Copy the full SHA aaf9f5eView commit details -
Allow passing in StructuredUnit for names.
Also speed up case for dtype. Plus cleanup and more documentation.
Configuration menu - View commit details
-
Copy full SHA for 9f0decd - Browse repository at this point
Copy the full SHA 9f0decdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40fb562 - Browse repository at this point
Copy the full SHA 40fb562View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fe39df - Browse repository at this point
Copy the full SHA 1fe39dfView commit details -
Ensure structured SpecificTypeQuantity is possible.
Turned out this needed a fix to how physical type IDs were returned, as a plain numpy.void gave a FutureWarning on comparisons, and is sensitive to names, which we do not want to be.
Configuration menu - View commit details
-
Copy full SHA for 1e90a2b - Browse repository at this point
Copy the full SHA 1e90a2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1a151a - Browse repository at this point
Copy the full SHA b1a151aView commit details -
Make .to(other) return the result for a value with all ones.
And fix .items() to directly return a tuple, for nicer interactive viewing.
Configuration menu - View commit details
-
Copy full SHA for cd30915 - Browse repository at this point
Copy the full SHA cd30915View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad28c92 - Browse repository at this point
Copy the full SHA ad28c92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5055b82 - Browse repository at this point
Copy the full SHA 5055b82View commit details
Commits on Jul 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a8ef5af - Browse repository at this point
Copy the full SHA a8ef5afView commit details