From 70ac0468c4895eb14dde1251d11ff28598b74553 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Mon, 30 Sep 2024 16:03:58 +0200 Subject: [PATCH] [FORUM][Windows] SF #1512 relax precision to 1e-9 on windows --- products/meshio.pyconf | 2 +- .../patches/meshio-5.3.5.p02.nastran_fID_1512.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch diff --git a/products/meshio.pyconf b/products/meshio.pyconf index 6d87618..b3ce9fd 100644 --- a/products/meshio.pyconf +++ b/products/meshio.pyconf @@ -49,7 +49,7 @@ version_5_3_5_win : { compil_script: "meshio-5.3.5.bat" archive_info : {archive_name : "meshio-5.3.5.tar.gz"} - patches : ['meshio-5.3.5.p01.gmsh_ansys.patch'] + patches : ['meshio-5.3.5.p01.gmsh_ansys.patch', 'meshio-5.3.5.p02.nastran_fID_1512.patch'] properties : { incremental : "yes" diff --git a/products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch b/products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch new file mode 100644 index 0000000..dcf10bb --- /dev/null +++ b/products/patches/meshio-5.3.5.p02.nastran_fID_1512.patch @@ -0,0 +1,11 @@ +--- meshio-5.3.5_ref/src/meshio/nastran/_nastran.py 2024-01-31 16:09:01.000000000 +0100 ++++ meshio-5.3.5_dev/src/meshio/nastran/_nastran.py 2024-09-30 15:59:26.751404661 +0200 +@@ -410,7 +410,7 @@ + -0.1234 --> "-1.234E-1" + 3.1415926535897932 --> "3.14159265359E+0" + """ +- out = np.format_float_scientific(value, exp_digits=1, precision=11).replace( ++ out = np.format_float_scientific(value, exp_digits=1, precision=9).replace( + "e", "E" + ) + assert len(out) <= 16 -- 2.39.2