From f159b02c20f4913aa7d063dbb93bd714b1bbe6e4 Mon Sep 17 00:00:00 2001 From: Malik Date: Fri, 5 Apr 2024 16:59:02 -0600 Subject: [PATCH] revert push --- .github/workflows/ci.yml | 11 ----------- pinn_spm_param/util/myNN.py | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8965b3..7ad4840 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,14 +82,3 @@ jobs: run: | cd BayesianCalibration_spm bash exec_test.sh - - name: Test SPM float 32 - run: | - cd pinn_spm_param - bash convert_to_float32.sh - cd integration_spm - python main.py -nosimp -opt -lean -p 0.5 1 - cd ../preProcess - python makeDataset_spm.py -nosimp -df ../integration_spm -frt 1 -p 0.5 1 - cd ../tests - pytest -v test_spm.py::test_sgd_lbfgs - pytest -v test_spm_postProc.py diff --git a/pinn_spm_param/util/myNN.py b/pinn_spm_param/util/myNN.py index 070dbd4..a0acb01 100644 --- a/pinn_spm_param/util/myNN.py +++ b/pinn_spm_param/util/myNN.py @@ -3199,17 +3199,6 @@ def prepareLog(self): with open( os.path.join(self.modelFolder, "config.json"), "w+" ) as outfile: - # float 32 not supported by Json - for key in self.config: - ent_type = str(type(self.config[key])) - if "numpy.float" in ent_type and "32" in ent_type: - self.config[key] = float(self.config[key]) - elif key=='params_min' or key =='params_max': - for ientry, entry in enumerate(self.config[key]): - ent_type = str(type(self.config[key][ientry])) - if "numpy.float" in ent_type and "32" in ent_type: - self.config[key][ientry] = float(entry) - json.dump(self.config, outfile, indent=4, sort_keys=True) # Make log headers