BICCN / cell-locator

manually align specimens to annotated 3D spaces
https://cell-locator.readthedocs.io
Other
19 stars 7 forks source link

ENH: Pretty-print annotation json files by default. #146

Closed allemangD closed 4 years ago

allemangD commented 4 years ago

For https://github.com/BICCN/cell-locator/issues/144.

Introduce an "indent" parameter which is passed to json.dump. Defaults to 2, so that files are indented by 2 spaces.


In the issue, indentation of 4 spaces is suggested. However, since the json structure is deeply nested and the Python files are indented by 2 spaces, I chose 2 as the default. It's easily changed, though, if that's determined to be an issue.