Skip to content

Commit

Permalink
Save recorder names properly
Browse files Browse the repository at this point in the history
  • Loading branch information
knikolaou committed Jun 8, 2024
1 parent 6c20b57 commit e7ffb67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CI/unit_tests/recorders/test_base_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_init(self):
assert recorder.measurements == [self.measurement_1, self.measurement_2]
assert recorder.chunk_size == 10
assert recorder.overwrite is False
assert recorder._data_storage.database_path == f"{storage_path}{name}.h5"
assert recorder._data_storage.database_path == f"{storage_path}/{name}.h5"

def test_neural_state_keys(self):
"""
Expand Down
4 changes: 2 additions & 2 deletions papyrus/recorders/base_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
self.overwrite = overwrite

# Initialize the data storage
self._data_storage = DataStorage(self.storage_path + self.name)
self._data_storage = DataStorage(f"{self.storage_path}/{self.name}")

# Read in neural state keys from measurements
self.neural_state_keys = self._read_neural_state_keys()
Expand Down Expand Up @@ -183,7 +183,7 @@ def store(self, ignore_chunk_size=True):
def gather(self):
"""
Gather the results from the temporary storage and the database.
Returns
-------
data : dict
Expand Down

0 comments on commit e7ffb67

Please sign in to comment.