Closed WeichenStars closed 11 months ago
I can confirm, just encountered the same issue on a fresh install
I have also found this to be true with a fresh install.
Hey All -- Sorry for the long reply. I am looking into the issue this morning and found the problem. The issue deals with how our argument parser is handling the -
in the <dec>
argument. The argument parser can accept arguments preceded by --
(example:--help
) for longhand names and -
(example:-h
) for shorthand names. When faced with -
and then a numeric value, the parser doesn't recognize the pattern outlined in the docstring, hence the confusion. I went ahead and made a quick fix in the PR here: #91
Attached is a figure of the target with the ra
and dec
provided by @WeichenStars
When this is in, the new commands will look like this:
jwst_gtvt --ra=00:44:34.02 --dec=-26:11:18.8
Thank you for your patience!
Hey All -- please see https://pypi.org/project/jwst-gtvt/ for the new version of the tool 1.0.1
. This should fix this issue! I am going to close the ticket now.
See https://github.com/spacetelescope/jwst_gtvt#example for examples of how to parse the ra and dec with these new updates. Thanks again for the your patience!
Great, thanks!
Hi everyone,
I found this puzzling issue for the new version v1.0.0.
Whenever the DEC value is negative in the input, there will be no output table or figure like the following:
Terminal input:
jwst_gtvt 00:44:34.02 -26:11:18.8
Terminal output:
If instead, the DEC value is positive, for example as follows, the figure and table will all be returned as normal:
Terminal input:
jwst_gtvt 00:44:34.02 26:11:18.8
The jwst_gtvt was installed on my mac osx (v12.1, Intel) using the standard pip install approach. I found no such issue with the previous jwst_gtvt version (v0.3.1).
Below is a list of other packages installed in my conda env in case it is useful to look at:
(gtvt) Vincents-MacBook-Air:server vincent$ conda list