Skip to content

Commit

Permalink
hardcode region
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Jan 25, 2024
1 parent d5d6383 commit 9b3282a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hdmf/backends/hdf5/h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __resolve_file_obj(cls, path, file_obj, driver):
if file_obj is None:
file_kwargs = dict()
if driver is not None:
file_kwargs.update(driver=driver)
file_kwargs.update(driver=driver, aws_region=bytes("us-east-2", "ascii"))

Check warning on line 143 in src/hdmf/backends/hdf5/h5tools.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/backends/hdf5/h5tools.py#L143

Added line #L143 was not covered by tests
file_obj = File(path, 'r', **file_kwargs)
return file_obj

Expand Down Expand Up @@ -757,6 +757,9 @@ def open(self):
if self.driver is not None:
kwargs.update(driver=self.driver)

if self.driver == "ros3":
kwargs.update(aws_region=bytes("us-east-2", "ascii"))

Check warning on line 761 in src/hdmf/backends/hdf5/h5tools.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/backends/hdf5/h5tools.py#L761

Added line #L761 was not covered by tests

self.__file = File(self.source, open_flag, **kwargs)

def close(self, close_links=True):
Expand Down

0 comments on commit 9b3282a

Please sign in to comment.