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

Update examples #24

Merged
merged 5 commits into from
Dec 3, 2021
Merged

Update examples #24

merged 5 commits into from
Dec 3, 2021

Conversation

jasperalbers
Copy link
Collaborator

This PR updates the examples to work with the new(-ish) plotting routines. Mainly, they move away from the deprecated catalogue.yaml and work directly with .csv files. Fixes #19.

@jasperalbers jasperalbers removed the request for review from ackurth December 2, 2021 16:15
@jasperalbers jasperalbers linked an issue Dec 2, 2021 that may be closed by this pull request
@jasperalbers
Copy link
Collaborator Author

@stinebuu a review on the basis of whether it works for you is fine here I think, no need to go through the code changes.

Copy link
Contributor

@stinebuu stinebuu left a comment

Choose a reason for hiding this comment

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

Very nice! All examples run for me now :)

@@ -261,7 +261,7 @@ def plot_fractions(self, axis, fill_variables,
matplotlib.ticker.ScalarFormatter())

def plot_main(self, quantities, axis, log=(False, False),
error=False):
error=False, fmt='none'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment about what fmt is in the Attributes list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Like this? (see bench_plot.py)

@jasperalbers jasperalbers merged commit e830488 into main Dec 3, 2021
@jasperalbers jasperalbers deleted the update_examples branch December 3, 2021 17:14
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.

Problems running examples Problem running microcircuit example
2 participants