Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichelp authored Feb 2, 2024
2 parents 0b95f75 + f6a1f74 commit 212cf7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scaaml/io/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,8 @@ def from_config(dataset_path: str, verbose: bool = True):
# Check that the library version (version of this software) is not
# lower than what was used to capture the dataset.
if "scaaml_version" in config.keys():
if semver.compare(config["scaaml_version"], scaaml.__version__) > 0:
if semver.Version.parse(config["scaaml_version"]).compare(
scaaml.__version__) > 0:
raise ValueError(f"SCAAML module is outdated, scaaml_version: "
f"{scaaml.__version__}, but dataset was "
f"created using: {config['scaaml_version']}")
Expand Down

0 comments on commit 212cf7a

Please sign in to comment.