spacetelescope / imexam

imexam is a python tool for simple image examination, and plotting, with similar functionality to IRAF's imexamine
http://imexam.readthedocs.io
BSD 3-Clause "New" or "Revised" License
75 stars 45 forks source link

Different XPA issues after connecting #220

Open orifox opened 3 years ago

orifox commented 3 years ago

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'