spacetx / starfish

starfish: unified pipelines for image-based transcriptomics
https://spacetx-starfish.readthedocs.io/en/latest/
MIT License
223 stars 67 forks source link

Update TransformsList class with `to_dict()` and `from_dict()` methods #1956

Closed njmei closed 2 years ago

njmei commented 3 years ago

This PR adds the ability to load/save a starfish TransformsList as a Python dict.

Luckily, tests already covered loading and saving from *.json and because those existing method now call these new dict load/save methods, they happen to be covered too.