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

Updated to use latest ndex2 client changes. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agary-ucsd
Copy link

These changes are compatible with ndex2-performance version 0.2.0.87+
Once the ndex2 client is fully tested we will merge with the master branch at which time you can install ndex2 (sans "-performance")

be sure to un-install older versions of ndex2 and ndex2-dev before installing

pip install ndex2-performance

c1 = CitationElement(id=0, title='Hi')
cx_network.add_citation(c1)
c1 = cx_network.add_citation(id=0, title='Hi')
cx_network.add_edge_citations(e1, c1.get('@id'))
Copy link
Owner

Choose a reason for hiding this comment

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

The interface would be much more user friendly if it accepted c1 directly, and inside add_edge_citations the code could use isinstance() to check if it's a str or dict, then run this call to get()

Copy link
Author

Choose a reason for hiding this comment

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

Agreed. I'll update add_edge_citations()

@cthoyt cthoyt self-requested a review August 10, 2018 16:57
@cthoyt
Copy link
Owner

cthoyt commented Aug 10, 2018

Could you update the requirements.txt and setup.py to reflect the different version of the ndex2 package?

Side note: The unit testing on this package isn't so good, so I'll have to improve that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants