Closed leejjoon closed 8 years ago
@astrofrog or @leejjoon (whoever has access) - Could you please go to https://coveralls.io/github/astropy/pyregion/settings and disable "leave comments on pull requests"?
(it's annoying and not very helpful for coveralls
to leave comments on pull requests all the time)
I can confirm that this fixes the test case given in #73 :
>>> import pyregion
>>> reg = pyregion.parse('J2000; circle 188.5557102 12.0314056 1" # color=red')[0]
>>> reg.__dict__
{'params': [Number(188.5557102), Number(12.0314056), Ang(1")], 'coord_format': 'j2000', 'comment': 'color=red', 'continued': None, 'coord_list': [188.5557102, 12.0314056, 0.0002777777777777778], 'name': 'circle', 'exclude': False, 'attr': ([], {'color': 'red'})}
@leejjoon - Do you have time to add a regression test for this before we merge? (If no, I can do it later today.)
I will add a test soon.
I've added a commit to fix the test for Python 3 (7a06ec3) and merged this PR locally.
This is to fix a parser raising an error when there is a space before the AngularDistance (e.g., 1"). This should solve #73.