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

Add string representations for catalogref and dataset #166

Merged

Conversation

jrleeman
Copy link
Contributor

@jrleeman jrleeman commented Nov 1, 2017

Should make working with siphon easier for folks. closes #158

@jrleeman jrleeman added this to the 0.6.1 milestone Nov 1, 2017
dopplershift
dopplershift previously approved these changes Nov 1, 2017
@jrleeman
Copy link
Contributor Author

jrleeman commented Nov 2, 2017

Should be ready to go @dopplershift - looks like the code coverage again isn't related.

@@ -312,6 +314,10 @@ def __init__(self, base_url, element_node):
href = element_node.attrib['{http://www.w3.org/1999/xlink}href']
self.href = urljoin(base_url, href)

def __str__(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test for this one? That's where the coverage drop is coming from.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did one better - I added the test AND added a string representation for catalogs as well (with a test). That revealed that the GOES16 catalog has no name as well.

@jrleeman jrleeman force-pushed the Improve_String_Representations branch from c0f066a to 80b8d0e Compare November 2, 2017 20:02
@dopplershift dopplershift merged commit 7c3df4f into Unidata:master Nov 2, 2017
@jrleeman jrleeman deleted the Improve_String_Representations branch November 2, 2017 21:17
@dopplershift dopplershift mentioned this pull request Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve catalog dataset string representation
2 participants