Skip to content

Commit 2b56a92

Browse files
authored
Merge pull request #239 from rayosborn:fix-target-filepath
Prevent use of the nxlink attribute when returning the target path
2 parents 66a36cb + a43cb28 commit 2b56a92

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/nexusformat/nexus/tree.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,10 +2534,7 @@ def nxfilepath(self):
25342534
if self.nxclass == 'NXroot':
25352535
return "/"
25362536
elif self.nxtarget:
2537-
if self.is_external():
2538-
return self.nxtarget
2539-
else:
2540-
return self.nxlink.nxfilepath
2537+
return self.nxtarget
25412538
elif self.nxgroup is None:
25422539
return ""
25432540
elif isinstance(self.nxgroup, NXroot):

0 commit comments

Comments
 (0)