Skip to content

Commit

Permalink
Upgrade libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Oct 15, 2024
1 parent f26664c commit ef51fbe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions MLStructFP_benchmarks/ml/model/core/_data_floor_photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def save_session(self, filename: str, description: str = '') -> None:
'split': self._split,

}
# noinspection PyTypeChecker
json.dump(data, fp, indent=2)

self._loaded_session = {
Expand Down
3 changes: 2 additions & 1 deletion MLStructFP_benchmarks/ml/model/core/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def __init__(self, name: str, path: Union[str, Path] = '') -> None:
self._production = False # Set model immutable to changes, also test and train data does not exist
self._path = str(path)
if self._path != '':
self._path += os.path.sep
self._path += os.pathsep
_check_path(self._path)

# Model
Expand Down Expand Up @@ -2092,6 +2092,7 @@ def _sorted_dict(d: Dict[str, Any]) -> Dict[str, Any]:
# Save history, last as this is a large data
data['history'] = self._history

# noinspection PyTypeChecker
json.dump(data, fp, indent=2)
self._loaded_session = {
'description': description,
Expand Down
4 changes: 2 additions & 2 deletions MLStructFP_benchmarks/utils/_fp_patch_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def __init__(
lx, ly = len(delta_x), len(delta_y)
assert lx * ly != 0, 'deltas for x and y-axis must have at least 1 item'
if 0 not in delta_x:
warn('Delta x must contain 0, which was added automatically')
warn('Delta x must contain 0, which has been automatically added')
delta_x.append(0)
if 0 not in delta_y:
warn('Delta y must contain 0, which was added automatically')
warn('Delta y must contain 0, which has been automatically added')
delta_y.append(0)
for i in range(lx):
assert isinstance(delta_x[i], (int, float))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'Keras <= 2.3.1',
'keras_tqdm <= 2.0.1',
'matplotlib <= 3.5.3',
'MLStructFP >= 0.6.8',
'MLStructFP >= 0.6.9',
'numpy <= 1.18.5',
'Pillow >= 10.4.0',
'plotly >= 5.23.0',
Expand Down

0 comments on commit ef51fbe

Please sign in to comment.