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

Move example graphs into package #39

Merged
merged 3 commits into from
May 3, 2023
Merged

Conversation

bentaculum
Copy link
Collaborator

Moves the three example graphs arlo_graph, toy_graph and toy_hypergraph into motile.data, similar to e.g. skimage.data. It seems useful to have a one-liner to get some small TrackGraph when prototyping in motile.

Creating and plotting a graph now works as follows:

from motile import data, plot
graph = data.arlo_graph()
plot.draw_track_graph(graph)

Graphs specific to a certain test can live directly in that test module.

@codecov-commenter
Copy link

Codecov Report

Merging #39 (2fbc861) into main (8defb53) will increase coverage by 0.98%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   77.12%   78.11%   +0.98%     
==========================================
  Files          28       29       +1     
  Lines         752      786      +34     
==========================================
+ Hits          580      614      +34     
  Misses        172      172              
Impacted Files Coverage Δ
motile/__init__.py 100.00% <100.00%> (ø)
motile/data.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Moves the three example graphs `arlo_graph`, `toy_graph` and
`toy_hypergraph` into `motile.data`, similar to e.g. `skimage.data`.
It seems useful to have a one-liner to get some small `TrackGraph` when
prototyping in motile.

Creating and plotting a graph now works as follows:
```python
from motile import data, plot
graph = data.arlo_graph()
plot.draw_track_graph(graph)
```

Graphs specific to a certain test can live directly in that test module.
Copy link
Member

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

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

seems convenient. Thanks @bentaculum

I made a couple minor changes to the function names to keep them all a bit more consistent with each other, so if you have any code using this branch (outside of this PR) you might need to update

@tlambert03 tlambert03 merged commit a7cb077 into main May 3, 2023
8 checks passed
@tlambert03 tlambert03 deleted the example_data_in_package branch May 3, 2023 14:16
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.

None yet

3 participants