Skip to content

Commit

Permalink
Fix resetting path in Dataset.download (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jul 5, 2021
1 parent 1c3d7dc commit 492762b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog/124.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug where sometimes the path wouldn't be set correctly after FITS file download.
10 changes: 5 additions & 5 deletions dkist/io/array_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def from_external_array_references(cls, ears, **kwargs):
Construct a collection from a (nested) iterable of
`asdf.ExternalArrayReference` objects.
"""
shape = ears[0].shape
dtype = ears[0].dtype
target = ears[0].target
ear0 = np.array(ears).flat[0]
shape = ear0.shape
dtype = ear0.dtype
target = ear0.target

for i, ele in enumerate(ears):
uris = cls._validate_homogenaity(shape, target, dtype, ears)
uris = cls._validate_homogenaity(shape, target, dtype, ears)

return cls(uris, target, dtype, shape, **kwargs)

Expand Down

0 comments on commit 492762b

Please sign in to comment.