Skip to content

Commit

Permalink
fixed some bugs with reading files with prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyWieser committed Jul 16, 2023
1 parent 315956d commit 1362831
Show file tree
Hide file tree
Showing 9 changed files with 619 additions and 6,784 deletions.
1,268 changes: 0 additions & 1,268 deletions docs/Examples/Example1b_CO2_Fluid_Inclusions/Step1_Fit_Your_Ne_Lines.ipynb

This file was deleted.

Large diffs are not rendered by default.

1,179 changes: 0 additions & 1,179 deletions docs/Examples/Example1b_CO2_Fluid_Inclusions/Step2_Filtering_Numerical.ipynb

This file was deleted.

1,764 changes: 0 additions & 1,764 deletions docs/Examples/Example1b_CO2_Fluid_Inclusions/Step3_FitAll_Together.ipynb

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 4 additions & 1 deletion src/DiadFit/densimeters.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def save_settings(meta_path, spectra_path, filetype, prefix, prefix_str, file_ex
'spectra_path': spectra_path,
'filetype': filetype,
'prefix': prefix,
'prefix_str': prefix_str,
'prefix_str': repr(prefix_str),
'file_ext': file_ext,
'TruPower': TruPower,
}
Expand Down Expand Up @@ -655,6 +655,9 @@ def get_settings():
if line:
key, value = line.split('=')
settings[key] = value
if key == 'prefix_str':
value = eval(value) # Evaluate the string to retrieve the original value
settings[key] = value

if 'prefix' in settings:
settings['prefix'] = settings['prefix'].lower() == 'true'
Expand Down

0 comments on commit 1362831

Please sign in to comment.