-
Notifications
You must be signed in to change notification settings - Fork 239
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
New units #1379
New units #1379
Conversation
Some of the units that cause problems are currently commented out.
Only part compiles so far.
This does not work however due to a bug in uomo: https://bugs.eclipse.org/bugs/show_bug.cgi?id=422300
This wrappers is as light as possible and not functional at present. It does allow `ant clean compile-ome-xml` to build successfully. While it uses uomo it could be changed another by hopefully just changing the ome.units.* files and language.py in xsdfu. The OMEXMLModelEnumHandler.template will need a little bit more work.
While the code compiles the underlying units classes are still missing most of the implementation. This may however be enough to allow all the changes to start to be made to the main codebase as the types are hopefully correct.
These are not convertible to/from the other temperature units as they have a time component.
There is no need to subclass Number, since the PrimitiveNumber's value is a Number.
Last two commits fix BIOFORMATS-5.1-breaking-matlab. |
This and ome/openmicroscopy#3129 are now out of the breaking queue |
re-adding breaking label so we can test new infrastructure (mainly upgrade scripts) |
Example of the issue we will hit if it is not derived from Number: First commit shown what will happen as we work on lengths which use the types derived from PrimitiveNumber, in this case PositiveFloat. Second two commits revert the changes to allow the code to compile. |
I also noticed a bug in the |
Rework the way Number is handle in the Units
This also resolved the issue with |
both @melissalinkert and @qidane are happy with current state of the PR, removing the breaking label |
Stop Time from having null value
Travis failure. |
Restarted. |
public static final ome.units.unit.Unit<ElectricPotential> VOLT = ome.units.unit.Unit.<ElectricPotential>CreateBaseUnit("SI.VOLT", "V"); | ||
public static final ome.units.unit.Unit<Frequency> HERTZ = ome.units.unit.Unit.<Frequency>CreateBaseUnit("SI.HERTZ", "Hz"); | ||
public static final ome.units.unit.Unit<Length> METRE = ome.units.unit.Unit.<Length>CreateBaseUnit("SI.METRE", "m"); | ||
public static final ome.units.unit.Unit<Length> INCH = ome.units.unit.Unit.<Length>CreateBaseUnit("Imperial.INCH", ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this missing a symbol, @qidane?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: melissalinkert#19
Discussed with @qidane, happy to have it merged |
Thanks all. Merging. |
This is gh-1265, with four extra commits for cleaning up old jars and making tests pass.
This is not currently in the breaking queue, so the merge jobs should be checked for passing status.