diff --git a/virtualizarr/readers/dmrpp.py b/virtualizarr/readers/dmrpp.py index cd81b922..5859ca92 100644 --- a/virtualizarr/readers/dmrpp.py +++ b/virtualizarr/readers/dmrpp.py @@ -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)