Skip to content

Commit

Permalink
Merge pull request #314 from shoeffner/original-format
Browse files Browse the repository at this point in the history
Always use the original file format when downloading files
  • Loading branch information
mih authored Jul 19, 2024
2 parents 8e54971 + 66c62df commit 0621e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad_dataverse/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def download_file(self, fid: int, path: Path):
# https://github.com/gdcc/pyDataverse/issues/49
# the code below is nevertheless readied for such a
# scenario
response = self.data_access_api.get_datafile(fid, is_pid=False)
response = self.data_access_api.get_datafile(fid, is_pid=False, data_format="original")
# http error handling
response.raise_for_status()
with path.open("wb") as f:
Expand Down

0 comments on commit 0621e2d

Please sign in to comment.