Skip to content

Commit

Permalink
bugfix samplers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GemmaTuron committed Aug 21, 2023
1 parent b4b176f commit 4152b6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ersilia/db/hubdata/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def _create_url_to_get_sample_content(self):
}
#Ensure that there is only one input type specified in the metadata.
assert len(self.input_type) == 1
input_type = self.input_type[0].lower()
input_shape = self.input_shape.lower().replace(" ", "-")
input_type = self.input_type.lower()
input_shape = self.input_shape.lower().replace(" ", "_")
file_name=None
if(input_shape not in shapes_to_filename_map):
if input_shape not in shapes_to_filename_map.keys():
raise InputBaseInformationError()
file_name= shapes_to_filename_map[input_shape]
assert file_name is not None
Expand Down

0 comments on commit 4152b6a

Please sign in to comment.