Skip to content

Commit

Permalink
Missing parent dir is created, dont check if missing here
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Sep 23, 2024
1 parent 3188a19 commit 079d193
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions snudda/simulate/save_network_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,6 @@ def write_string_meta_data(self, group, name):
group.create_dataset(name, (len(string_data),), str_type, string_data, compression="gzip")

def check_file_available(self, file_name):
file_dir = os.path.dirname(file_name)

if not os.path.isdir(file_dir):
raise ValueError(f"Parent directory for file does not exist {file_name} (dir: {file_dir}")

if os.path.isfile(file_name):
# Try to open and close file, to make sure it is available
Expand Down

0 comments on commit 079d193

Please sign in to comment.