Skip to content

Commit

Permalink
use file name in description, not file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaquier Aurélien Tristan committed Mar 21, 2024
1 parent c051f84 commit e314c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluepyefe/nwbreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def read(self):
# if we have v_file, check that trace comes from this original file
if self.v_file is not None:
attrs = self.content["acquisition"][trace_name].attrs
v_file_end = "/" + "/".join(self.v_file.split("/")[-2:])
if v_file_end != attrs.get("description", ""):
v_file_end = self.v_file.split("/")[-1]
if v_file_end != attrs.get("description", "").split("/")[-1]:
logger.debug(f"Ignoring {trace_name} not matching v_file")
continue

Expand Down

0 comments on commit e314c2b

Please sign in to comment.