-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[SCFD-4128] [SCFD-4126] feat(): Removed validation process for unit system conversion #666
Conversation
benflexcompute
commented
Jan 17, 2025
•
edited
Loading
edited
- feat(): Removed validation process for unit system conversion
- Change temperature unit for imperial to be Fahrenheit
@@ -58,6 +60,7 @@ | |||
) | |||
from flow360.component.utils import remove_properties_by_name | |||
from flow360.exceptions import Flow360TranslationError | |||
from flow360.log import log |
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.
Should we remove this import since it is not used?
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.
Good catch, curse the pytlint disable. We should limit its scope from now on.
def test_unit_system_conversion(): | ||
with open("data/simulation_param.json", "r") as fp: | ||
dict_to_convert = json.load(fp) | ||
services.change_unit_system(data=dict_to_convert, new_unit_system="Imperial") |
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.
Do we also need to test the conversion to "CGS" and "SI"?
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.
Added to CGS conversion and SI conversion.
08d1a5b
to
b754b83
Compare
Change temperature unit for imperial to be Fahrenheit Fixed bugs More tests
b754b83
to
f3d72c2
Compare
…ystem conversion (#666) * feat(): Removed validation process for unit system conversion Change temperature unit for imperial to be Fahrenheit Fixed bugs More tests * Ready to be reviewed * Fix lint * Fix lint * Corrected the SI unit test * Fix fragial windows float computation
…use they are not tested yet and I need to deploy a new version. (#684) * Revert "fix(): Ammend bugs in PR#668, also changed Imperial unit system to use Fahrenheit as default temperature unit (#678) (#680)" This reverts commit 160062e. * Revert "[SCFD-4128] [SCFD-4126] feat(): Removed validation process for unit system conversion (#666) (#679)" This reverts commit 2568a16. * Revert "fix(): temperature_offset has same unit conversion as temperature (#668) (#677)" This reverts commit 07b91cc. * Hacy fix to diable the positive temperature check.