We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8055a3d + 5a933df commit 0e575a4Copy full SHA for 0e575a4
bw2data/data_store.py
@@ -161,7 +161,9 @@ def filepath_processed(self):
161
return self.dirpath_processed() / self.filename_processed()
162
163
def datapackage(self):
164
- return load_datapackage(ZipFS(self.filepath_processed()))
+ zip_file_path = self.filepath_processed()
165
+ with ZipFS(zip_file_path) as zip_fs:
166
+ return load_datapackage(zip_fs)
167
168
def write(self, data, process=True):
169
"""Serialize intermediate data to disk.
0 commit comments