@open3cl/engine 1.3.22 → 1.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/4_ventilation.js CHANGED
@@ -67,8 +67,11 @@ function tv_q4pa_conv(di, de, cg, mur_list, ph_list, porte_list, bv_list) {
67
67
  if (!porte.donnee_entree.presence_joint) return acc + porte.donnee_entree.surface_porte;
68
68
  else return acc;
69
69
  }, 0);
70
- let pjt =
71
- surface_bv_avec_joint / (surface_bv_avec_joint + surface_bv_sans_joint) > 0.5 ? '1' : '0';
70
+ const ratioSurfaceJoint = surface_bv_avec_joint / (surface_bv_avec_joint + surface_bv_sans_joint);
71
+ let pjt = ratioSurfaceJoint > 0.5 ? '1' : '0';
72
+ if (bug_for_bug_compat) {
73
+ pjt = ratioSurfaceJoint >= 0.5 ? '1' : '0';
74
+ }
72
75
 
73
76
  if (bug_for_bug_compat && de.tv_q4pa_conv_id) {
74
77
  const rowQ4paConv = tv('q4pa_conv', {
package/engine.js CHANGED
@@ -20,7 +20,7 @@ import { Inertie } from './7_inertie.js';
20
20
  import getFicheTechnique from './ficheTechnique.js';
21
21
  import { ProductionENR } from './16.2_production_enr.js';
22
22
 
23
- const LIB_VERSION = '1.3.22';
23
+ const LIB_VERSION = '1.3.23';
24
24
 
25
25
  function calc_th(map_id) {
26
26
  const map = enums.methode_application_dpe_log[map_id];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open3cl/engine",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "description": "Open Source 3CL-DPE engine",
5
5
  "main": "index.js",
6
6
  "directories": {