Skip to content

Commit

Permalink
remove 'v' prefix before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Dec 1, 2023
1 parent 9083b09 commit ab69b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_test_file(ds_name, file_format=None):
test_ds = [ds for ds in sorted(
client.list_dataset_infos(name=ds_name, status='test_dataset', version='ANY'),
key=lambda ds: ds.version
) if ds.version <= climada_version][-1]
) if ds.version.strip('v') <= climada_version.strip('v')][-1]
_, files = client.download_dataset(test_ds)
[test_file] = [fil for fil in files if fil.name in [
dsf.file_name
Expand Down

0 comments on commit ab69b0d

Please sign in to comment.