Skip to content

Add some generic pipes (when specific values are unknown). #325

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nicolas-sitylb
Copy link
Contributor

Notice: I don't speak RO so feel free to fix the translation (I wrote the extra suffix in value_ro in english).

I don't speak RO so feel free to fix the translation (I wrote the `value_ro` in english).
@nicolas-sitylb nicolas-sitylb changed the title Add a generic pipe for unknown PE type (id=9999) Add some generic pipes (when specific values are unknown). Apr 21, 2020
@@ -561,6 +562,7 @@ INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr,
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7628, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '710', NULL, 625.800, 710.000, 8, 17, 42.1);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7629, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '90', NULL, 81.400, 90.000, 6, 21, 4.3);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7630, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '110', NULL, 99.400, 110.000, 6, 21, 5.3);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (9999, true, '', '', 'PE inconnu', 'Polyéthylène de type inconnu', 'PE unknown', 'Polietilenă unknown type', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi - by consistency of serial id, maybe 7699 would be a bette id value? Polyéthylène is all in the 7xxx range

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have a description of those different ranges, I can guess most of them, but I do not like "guessing" stuff. ;-)

Copy link
Contributor

Choose a reason for hiding this comment

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

nope, I don't know of any specification for id ranges.

Copy link

Choose a reason for hiding this comment

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

@3nids Do you know how the id's were set at the beginning?

Copy link
Member

Choose a reason for hiding this comment

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

@nicolas-sitylb For PE we already have id 5501 who takes care of the unknown value. I think your PR should update those values to "unknown etc."
You can replace the Ro value from 'Polietilenă unknown type' with PE necunoscută

Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

What I see here is that we have two PE with unknown diameters :

  • 1st is id 5501 for PE (100) with unknown diameter.
  • 2nd is id 5550 for PE 80 with unknown diameter.

I would not be in favor of adding an unknown PE material, since "plastic" generic material type is a synonym of PE unknown. In that case it would be better to use either

  • 3rd id 5651 plastic with unknown diameter
    or
  • 1st id 5501 for PE (100) with unknown diameter as default value when PE type is unknown.

Copy link
Member

Choose a reason for hiding this comment

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

Hi, I always took the plastic as also containing PVC or GRP. If we differentiate between PE(100) and PE80 then we should also differentiate the unknown values.

@@ -561,6 +562,7 @@ INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr,
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7628, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '710', NULL, 625.800, 710.000, 8, 17, 42.1);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7629, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '90', NULL, 81.400, 90.000, 6, 21, 4.3);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (7630, true, '', '', 'PE80', 'Polyéthylène 80', 'PE80', 'Polietilenă 80', '110', NULL, 99.400, 110.000, 6, 21, 5.3);
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (9999, true, '', '', 'PE inconnu', 'Polyéthylène de type inconnu', 'PE unknown', 'Polietilenă unknown type', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Copy link
Member

Choose a reason for hiding this comment

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

Therefore:

Suggested change
INSERT INTO qwat_vl.pipe_material (id, vl_active, short_en, value_en, short_fr, value_fr, short_ro, value_ro, diameter, diameter_nominal, diameter_internal, diameter_external, pressure_nominal, sdr, wall_thickness) VALUES (9999, true, '', '', 'PE inconnu', 'Polyéthylène de type inconnu', 'PE unknown', 'Polietilenă unknown type', NULL, NULL, NULL, NULL, NULL, NULL, NULL);

@nicolas-sitylb
Copy link
Contributor Author

@tudorbarascu I updated the Romanian translation according to your proposal.
I also re-synchronized my master branch according to the current state of the qwat:master.

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.

5 participants