Repository navigation
Fixes and enhancements to ShapeList.write() - #33
Conversation
The following issues are being addressed in the proposed changes:
1. `pyregion.ShapeList.write` crashes when saving regions without
comments [bug fix];
2. `pyregion.ShapeList.write` converts exclude ("-") DS9 regions to
regular ("+") region when saving region files [bug fix];
3. `pyregion.ShapeList.write` cannot save region files that contain
regions with mixed Coordinate Systems (e.g., image, sky, etc.) Proposed
here changes will allow saving region lists with mixed coordinate
systems. [enhancement]
|
Can you check if this PR conflicts with #30? |
|
@leejjoon @keflavich I am not sure if I understand correctly the whole set of changes proposed by @keflavich but it seems to me it adds support for new shapes (e.g., projections), can print more attributes (comments), and solves the bug reported in my PR #29. I am happy to see these additions, however, I think my bug fix can also print the whole comment line (when present). In addition, unlike @keflavich PR, it will not add a comment sign I think (please correct me if I am wrong - I am no expert in Github), there are two approaches to dealing with these two PRs (considering that my original PR #29 was the first to fix crashes in the
|
Fixes and enhancements to ShapeList.write()
|
I am merging this PR. @keflavich : if this does not solve your problem, please send in a new PR based on this. |
The following issues are being addressed in the proposed changes:
pyregion.ShapeList.writecrashes when saving regions without comments [bug fix];pyregion.ShapeList.writeconverts exclude ("-")DS9regions to regular ("+") region when saving region files [bug fix];pyregion.ShapeList.writecannot save region files that contain regions with mixed Coordinate Systems (e.g., image, sky, etc.) Proposed here changes will allow saving region lists with mixed coordinate systems. [enhancement]This replaces a part of the PR #29.