bluesky / suitcase-tiff

http://nsls-ii.github.io/suitcase
Other
2 stars 5 forks source link

suitcase.tiff_series and suitcase.tiff_stack do not export tiff images #39

Open st3107 opened 3 years ago

st3107 commented 3 years ago

I was trying to use suitcase.tiff_series to export the tiff images of diffraction data in the workstation xf28id1-ws6.

from databroker import catalog
import suitcase.tiff_stack
import suitcase.tiff_series
db = catalog['xpd']
run = db['e2b7d9c5-38a9-4787-9cae-4d7e18d02697']
docs = run.canonical(fill="yes")
suitcase.tiff_stack.export(docs, '.')
suitcase.tiff_series.export(docs, '.')

No tiff files were generated. I also tried other run, the result was the same. I could make sure that there is a diffraction image with key "pe1_image" in the "data".

danielballan commented 3 years ago

These "suitcases" infer whether or not they should export a given column (a.k.a. "field") based on its dimensionality.

https://github.com/bluesky/suitcase-tiff/blob/935765f071d95e8395a25886b05bac2d5e551182/suitcase/tiff_stack/__init__.py#L272-L280

If you are running this locally, would it be possible to add some prints to investigate what dimensionality it is seeing here? We should add some logging to make it convenient to investigate in the future.