bluesky / suitcase-tiff

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

Fix `**self._kwargs` #47

Open mrakitin opened 10 months ago

mrakitin commented 10 months ago

Discovered today while working on https://github.com/NSLS-II-QAS/profile_collection/pull/30.

mrakitin commented 10 months ago

@tacaswell, we discovered the issue while trying to pass the metadata to TiffWriter.write(). Do you happen to know how to format the metadata properly? We tried the following, but it did not work:

        metadata={"imagej_metadata_tag": {
            "Info": datetime.datetime.now().isoformat()
            }
        }
mrakitin commented 10 months ago
=========================== short test summary info ============================
FAILED suitcase/tiff_series/tests/tests.py::test_2d_data[False] - KeyError: 'stream_data'
FAILED suitcase/tiff_series/tests/tests.py::test_2d_data[True] - KeyError: 'stream_data'
FAILED suitcase/tiff_series/tests/tests.py::test_3d_data[False] - KeyError: 'stream_data'
FAILED suitcase/tiff_series/tests/tests.py::test_3d_data[True] - KeyError: 'stream_data'
FAILED suitcase/tiff_series/tests/tests.py::test_2d_data_lies[False] - Failed: DID NOT WARN. No warnings of type (<class 'Warning'>,) were emitted.
The list of emitted warnings is: [].
FAILED suitcase/tiff_series/tests/tests.py::test_2d_data_lies[True] - Failed: DID NOT WARN. No warnings of type (<class 'Warning'>,) were emitted.
The list of emitted warnings is: [].
================= 6 failed, 724 passed, 240 warnings in 9.40s ==================