Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing region : "Unrecognized key labelposition" #1012

Closed
collioud opened this issue Jan 26, 2022 · 1 comment · Fixed by #1097
Closed

Error when importing region : "Unrecognized key labelposition" #1012

collioud opened this issue Jan 26, 2022 · 1 comment · Fixed by #1097
Assignees
Labels
bug Something isn't working

Comments

@collioud
Copy link

Describe the bug
Get an error when importing a previously exported region.

To Reproduce
Steps to reproduce the behavior:

  1. Create a rectangular region
  2. Export it to file (crtf)

Example :
#CRTFv0 CASA Region Text Format version 0
centerbox [[235.2485pix, 233.1714pix], [149.5497pix, 155.7809pix]] linewidth=2, linestyle=-, symsize=1, symthick=1, color=2ee6d6, font="Helvetica", fontsize=10, fontstyle=bold, usetex=false, label="My region", labelcolor=green, labelposition=top

  1. Delete the region
  2. Try to importing the region from file -> error "Unrecognized key labelposition"

Expected behavior
The region to be imported back.
Region imported successfully when deleting the ", labelposition=top" end of line.

Platform info

  • OS: Linux Ubuntu 20.04
  • Browser Firefox 96.0
  • Version Carta 3.0.0-beta.2b (carta_backend: Version 3.0.0-beta.2c)
@kswang1029 kswang1029 transferred this issue from CARTAvis/carta-frontend Jan 27, 2022
@kswang1029 kswang1029 added the bug Something isn't working label Jan 27, 2022
@pford pford self-assigned this Jan 27, 2022
@kswang1029
Copy link
Contributor

kswang1029 commented Jan 27, 2022

This happens when a region has a custom name defined via the region dialog. Once a custom name is set, the following parameters show up in the crtf text:

label="my region", labelcolor=green, labelposition=top

test crtf file:
test.crtf.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants