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 get_network_actioned_tasks and get_task_actioned_networks to AlchemicaleClient #214

Merged
merged 13 commits into from
Dec 21, 2023

Conversation

ianmkenney
Copy link
Collaborator

fixes #173

This PR implements methods at the statestore, interface/api, and interface/client levels to give users access to Tasks and AlchemicalNetworks based on their relationship with one another.

ianmkenney and others added 5 commits December 13, 2023 15:34
* Implemented methods: get_taskhub_actioned_tasks and
  get_task_actioned_networks
* Added tests: test_get_taskhub_actioned_tasks and
  test_get_task_actioned_networks
* Added get_network_actioned_tasks to client
* Added get_network_actioned_tasks endpoint to API
* Added tests for Alchemiscale.get_network_actioned_tasks
Copy link
Member

@dotsdl dotsdl left a comment

Choose a reason for hiding this comment

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

Looking good so far @ianmkenney! Thanks for working on this!

Comment on lines 649 to 651
task
ScopedKey of a task which may or may

Copy link
Member

Choose a reason for hiding this comment

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

For symmetry with get_network_actioned_tasks, does it make sense to also add a task_weights kwarg?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

@ianmkenney ianmkenney changed the title [WIP] Add get_network_actioned_tasks and get_task_actioned_networks to AlchemicaleClient Add get_network_actioned_tasks and get_task_actioned_networks to AlchemicaleClient Dec 20, 2023
@ianmkenney ianmkenney marked this pull request as ready for review December 20, 2023 00:40
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2023

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (81d977b) 81.96% compared to head (d35aa7e) 81.69%.

Files Patch % Lines
alchemiscale/interface/api.py 23.52% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #214      +/-   ##
==========================================
- Coverage   81.96%   81.69%   -0.28%     
==========================================
  Files          22       22              
  Lines        2828     2873      +45     
==========================================
+ Hits         2318     2347      +29     
- Misses        510      526      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ve weights

This shortcuts a lot of unnecessary chatty communication between the API service and
the database.
Copy link
Member

@dotsdl dotsdl left a comment

Choose a reason for hiding this comment

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

Great work @ianmkenney! I made some major simplifications to the AlchemiscaleAPI methods by adding weights output to the Neo4jStore methods they call. Let me know if you are in favor of these changes; if so, we'll merge.

@dotsdl dotsdl merged commit c17a423 into main Dec 21, 2023
4 checks passed
@dotsdl dotsdl deleted the 173-get-actioned_tasks-actioned_networks branch December 21, 2023 18:05
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.

Add get_network_actioned_tasks and get_task_actioned_networks methods to AlchemiscaleClient
3 participants