Skip to content

Added new units for Pressure and VolumeRate#397

Closed
Eagle941 wants to merge 22 commits into
iliekturtles:masterfrom
Eagle941:new_units
Closed

Added new units for Pressure and VolumeRate#397
Eagle941 wants to merge 22 commits into
iliekturtles:masterfrom
Eagle941:new_units

Conversation

@Eagle941

Copy link
Copy Markdown
Contributor

Added the following two units:

  • Pressure newton_per_square_millimeter
  • VolumeRate liter_per_minute

@Eagle941 Eagle941 changed the title Added new units Added Pressure and VolumeRate units Jan 12, 2023

@iliekturtles iliekturtles left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the PR!

I pushed some fixes to the volume_rate tests.

  • Rebase your changes on top of the latest master.
  • Update the commit message to something like "Add new units for pressure and volume rate."

Comment thread src/si/volume_rate.rs Outdated
@decaliter_per_second: prefix!(milli) * prefix!(deca); "daL/s", "decaliter per second",
"decaliters per second";
@liter_per_second: prefix!(milli); "L/s", "liter per second", "liters per second";
@liter_per_minute: prefix!(milli) / 60.; "L/min", "liter per minute", "liters per minute";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Move this line down to a new group underneath @yoctoliter_per_second. Add a test case as well.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

EDIT: change the conversion factor to prefix!(milli) / 6.0_E1;.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@Eagle941 Eagle941 changed the title Added Pressure and VolumeRate units Added new units for Pressure and VolumeRate Jan 15, 2023

@iliekturtles iliekturtles left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks like something went wrong during your rebase. If you make sure your upstream remote for iliekturtles/uom is up to date you can rebase -i iliekturtles/master, squash all the commits together, apply the minor formatting changes below, and update the commit message.

Comment thread src/si/volume_rate.rs Outdated
"zeptoliters per second";
@yoctoliter_per_second: prefix!(milli) * prefix!(yocto); "yL/s", "yoctoliter per second",
"yoctoliters per second";
@liter_per_minute: prefix!(milli) / 6.0_E1; "L/min", "liter per minute", "liters per minute";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
@liter_per_minute: prefix!(milli) / 6.0_E1; "L/min", "liter per minute", "liters per minute";
@liter_per_minute: prefix!(milli) / 6.0_E1; "L/min", "liter per minute",
"liters per minute";

Comment thread src/si/volume_rate.rs
test::<v::attoliter, t::second, r::attoliter_per_second>();
test::<v::zeptoliter, t::second, r::zeptoliter_per_second>();
test::<v::yoctoliter, t::second, r::yoctoliter_per_second>();
test::<v::liter, t::minute, r::liter_per_minute>();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
test::<v::liter, t::minute, r::liter_per_minute>();
test::<v::liter, t::minute, r::liter_per_minute>();

Eagle941 and others added 16 commits January 17, 2023 22:46
Added new units

Add fixes to liter per minute

Rebase and added unit test for liter_per_minute

Added new units

Add fixes to liter per minute

Added new units

Add fixes to liter per minute

Fixed format

Fixed format
Added new units

Add fixes to liter per minute

Rebase and added unit test for liter_per_minute

Added new units

Add fixes to liter per minute

Added new units

Add fixes to liter per minute

Fixed format

Fixed format

Added liter_per_minute and newton_per_square_millimeter

Added new units for VolumeRate and Pressure

Added new units

Add fixes to liter per minute

Fixed format

Fixed format
@Eagle941 Eagle941 closed this Jan 17, 2023
@Eagle941 Eagle941 deleted the new_units branch January 17, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants