Skip to content

Commit

Permalink
Adding handling for un-pyramided tiff
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwarchol committed Oct 27, 2022
1 parent 321421f commit 4faa369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions minerva_analysis/server/models/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,9 @@ def convertOmeTiff(filePath, channelFilePath=None, dataDirectory=None, isLabelIm
if isinstance(channels, zarr.Array):
channel_info['maxLevel'] = 1
chunks = channels.chunks
if chunks[1] == 1 or chunks[2] == 1:
chunks = [1, channels.shape[1], channels.shape[2]]
channel_info['channels'] = channels.shape[0]
shape = channels.shape
else:
channel_info['maxLevel'] = len(channels)
Expand Down
2 changes: 0 additions & 2 deletions minerva_analysis/server/routes/import_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,6 @@ def save_config():

for name in datasets:
data_model.load_datasource(name, reload=True)
# Create Embedding
data_model.create_embedding(datasets)

resp = jsonify(success=True)
return resp
Expand Down

0 comments on commit 4faa369

Please sign in to comment.