-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add get_info_by_id to VOTable interface #3633
Conversation
@mdboom , you already made the changes and this seems not related to Cone Search, so why am I assigned? I am confused. |
In astropy, we are experimenting with a new policy for PR assignment. People assigned to a PR are responsible for reviewing and merging it -- which is usually someone different from the author of the PR. Issue assignment still just means "I'm working on it". So, I assigned this to you as one of the other VOTable experts on the team. |
I can't say I am an "expert", but I can help with review. Although I cannot merge because I do not have write access. |
@@ -258,7 +258,7 @@ | |||
</TR> | |||
</TABLEDATA> | |||
</DATA> | |||
<INFO ID="Error" name="Error" value="One might expect to find some INFO here, too..."/> | |||
<INFO ID="ErrorInfo" name="Error" value="One might expect to find some INFO here, too..."/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did ID change from Error
to ErrorInfo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is what we expect to get out when we load regression.xml
, convert it to binary and back and output it in VOTable version 1.3. In the original file, regression.xml
, it used to be that only name
was specified, so ID
was created based on it. In order to test that ID
and name
are also treated separately, I added an ID
to the original that doesn't match name
.
Okay, looks fine to me. Okay to merge. |
Add get_info_by_id to VOTable interface
I don't see any reason @pllim doesn't have write access. |
Addresses a shortcoming shared on the mailing list thread "getting id value from xml files" by Grigoris Maravelias. http://mail.scipy.org/pipermail/astropy/2015-March/003661.html
There is currently no way to just find an INFO element by its ID (though there is for everything else with an ID). This adds that.