Skip to content

Commit

Permalink
update dmrpp default datapath
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushnag committed Nov 5, 2024
1 parent e4a326f commit 3040eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualizarr/readers/dmrpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def open_virtual_dataset(
).open_file()

parser = DMRParser(
root=ET.parse(fpath).getroot(), data_filepath=filepath.strip(".dmrpp")
root=ET.parse(fpath).getroot(),
data_filepath=filepath.removesuffix(".dmrpp"),
)
vds = parser.parse_dataset(group=group, indexes=indexes)

Expand Down

0 comments on commit 3040eeb

Please sign in to comment.