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

gather all the unit conversions into one file #2447

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

ghazwarhili
Copy link
Contributor

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 686 files.

Valid Invalid Ignored Fixed
639 1 46 0
Click to see the invalid file list
  • src/components/dialogs/converter-unit-utils.ts

src/components/dialogs/converter-unit-utils.ts Outdated Show resolved Hide resolved
@thangqp thangqp self-requested a review December 17, 2024 10:17
case B2:
return unitToMicroUnit(value?.value);
return convertInputValues(FieldType.B2, value?.value);
Copy link
Contributor

@thangqp thangqp Dec 20, 2024

Choose a reason for hiding this comment

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

what's about MAX_SUSCEPTANCE, in IHM is S and IIDM is MicroS ?

Also, the csv file the value edited for MAX_SUSCEPTANCE is in S or MicroS ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is planned to handle the fix for labels for all the IHM of gridstudy in another PR (we have already another US to fix this)

case B2:
return toModificationOperation(microUnitToUnit(value));
return toModificationOperation(convertOutputValues(FieldType.B2, value));
Copy link
Contributor

@thangqp thangqp Dec 20, 2024

Choose a reason for hiding this comment

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

idem, what's about MAX_SUSCEPTANCE, in IHM is S and IIDM is MicroS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the same

MAXIMUM_SUSCEPTANCE: {
id: FieldType.MAXIMUM_SUSCEPTANCE,
MAX_SUSCEPTANCE: {
id: FieldType.MAX_SUSCEPTANCE,
label: 'maxSusceptance',
unit: MICRO_SIEMENS,
Copy link
Contributor

Choose a reason for hiding this comment

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

MICRO_SIEMENS to SIEMENS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the same

MAXIMUM_Q_AT_NOMINAL_VOLTAGE: {
id: FieldType.MAXIMUM_Q_AT_NOMINAL_VOLTAGE,
MAX_Q_AT_NOMINAL_V: {
id: FieldType.MAX_Q_AT_NOMINAL_V,
label: 'maxQAtNominalV',
unit: MICRO_SIEMENS,
Copy link
Contributor

Choose a reason for hiding this comment

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

MVar and not Micro S

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the same

@ghazwarhili ghazwarhili requested a review from thangqp December 20, 2024 21:17
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