Skip to content
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

Merged
merged 67 commits into from
Oct 28, 2014
Merged

New units #1379

merged 67 commits into from
Oct 28, 2014

Conversation

melissalinkert
Copy link
Member

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.

qidane added 30 commits July 23, 2014 15:59
Some of the units that cause problems are currently commented out.
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.
@melissalinkert
Copy link
Member Author

Last two commits fix BIOFORMATS-5.1-breaking-matlab.

@jburel
Copy link
Member

jburel commented Oct 22, 2014

This and ome/openmicroscopy#3129 are now out of the breaking queue

@jburel
Copy link
Member

jburel commented Oct 22, 2014

re-adding breaking label so we can test new infrastructure (mainly upgrade scripts)

@qidane
Copy link
Contributor

qidane commented Oct 23, 2014

Example of the issue we will hit if it is not derived from Number:
qidane/bioformats@melissalinkert:new-units...new-units-more-types

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.

@qidane
Copy link
Contributor

qidane commented Oct 23, 2014

I also noticed a bug in the OMEXMLModelEnumHandler.template but I will make a PR with that fix in it after the Number issue is resolved.

@qidane
Copy link
Contributor

qidane commented Oct 23, 2014

This also resolved the issue with OMEXMLModelEnumHandler.template.

@jburel
Copy link
Member

jburel commented Oct 24, 2014

both @melissalinkert and @qidane are happy with current state of the PR, removing the breaking label

@jburel jburel removed the breaking label Oct 24, 2014
@mtbc
Copy link
Member

mtbc commented Oct 27, 2014

Travis failure.

@melissalinkert
Copy link
Member Author

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", "");
Copy link
Member

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jburel
Copy link
Member

jburel commented Oct 28, 2014

Discussed with @qidane, happy to have it merged

@sbesson
Copy link
Member

sbesson commented Oct 28, 2014

Thanks all. Merging.

sbesson added a commit that referenced this pull request Oct 28, 2014
@sbesson sbesson merged commit db0603a into ome:develop Oct 28, 2014
@sbesson sbesson added this to the 5.1.0-m2 milestone Nov 26, 2014
@melissalinkert melissalinkert deleted the new-units branch April 13, 2015 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants