Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize dtype for h5path with SlideData constructor #335

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Merge branch 'merge-master' into change-dtypes
  • Loading branch information
tddough98 committed Oct 25, 2022
commit 8dfafdef3265002249417ce6e98f5bd1d56b1f1c
4 changes: 2 additions & 2 deletions pathml/core/h5managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def __init__(self, h5path=None, slidedata=None):
str(self.countspath.name) + "/tmpfile.h5ad"
)
# Default to float16 if there are no tiles
self.dtype = get_tiles_dtype(h5path) or np.dtype('float16')
self.dtype = get_tiles_dtype(h5path) or np.dtype("float16")

else:
assert slidedata, f"must pass slidedata object to create h5path"
assert slidedata, "must pass slidedata object to create h5path"
self.dtype = slidedata.dtype
# initialize h5path file hierarchy
# fields
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.