Skip to content

Commit

Permalink
revert push
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed Apr 5, 2024
1 parent b74e4b8 commit f159b02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 0 additions & 11 deletions pinn_spm_param/util/myNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f159b02

Please sign in to comment.