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

Different XPA issues after connecting #220

Open
orifox opened this issue Dec 22, 2020 · 0 comments
Open

Different XPA issues after connecting #220

orifox opened this issue Dec 22, 2020 · 0 comments

Comments

@orifox
Copy link

orifox commented Dec 22, 2020

I am trying to apply a variety of methods after connecting ds9, but running into different issues that all seem related to XPA. One example (that might fix all my other issues) is:

viewer.save_regions(), which returns:


XpaException Traceback (most recent call last)
in
----> 1 viewer.save_regions()

~/miniconda3/lib/python3.7/site-packages/imexam/connect.py in save_regions(self, *args, **kwargs)
453 def save_regions(self, *args, **kwargs):
454 """Save the regions on the current window to a file."""
--> 455 self.window.save_regions(*args, **kwargs)
456
457 def scale(self, *args, **kwargs):

~/miniconda3/lib/python3.7/site-packages/imexam/ds9_viewer.py in save_regions(self, filename)
1527
1528 """
-> 1529 regions = self.get("regions save")
1530 frame = self.frame()
1531

~/miniconda3/lib/python3.7/site-packages/imexam/ds9_viewer.py in get(self, param)
682 """
683 self._check_ds9_process()
--> 684 return self.xpa.get(param)
685
686 def readcursor(self):

~/miniconda3/lib/python3.7/site-packages/imexam/xpa_wrap.py in get(self, param)
12 def get(self, param=""):
13 """Get information from the xpa."""
---> 14 return super(XPA, self).get(param.encode('utf-8', 'strict')).decode()
15
16 def set(self, param="", buf=None):

wrappers/xpa.pyx in imexam.imexamxpa.xpa.get()

wrappers/xpa.pyx in imexam.imexamxpa._get()

XpaException: b'XPA$ERROR parse error, expecting: AUTOCENTROID, BACKGROUND, CENTROID, COLOR, DELIM, EPSILON, EXCLUDE, FORMAT, GROUP, GROUPS, INCLUDE, SELECTED, SHAPE, SHOW, SHOWTEXT, SKY, SKYFORMAT, SOURCE, STRIP, SYSTEM, WIDTH, MFORMAT, MSYSTEM, MSKY, MSKYFORMAT, MSTRIP, MDELIM, MPROP, MGROUP, found save (DS9:imexam1608650499.592382 ac110719:63900)\n'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant