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

ENH: TocDict class for results #30

Merged
merged 4 commits into from
Sep 11, 2023
Merged

ENH: TocDict class for results #30

merged 4 commits into from
Sep 11, 2023

Conversation

ntessore
Copy link
Contributor

@ntessore ntessore commented Sep 9, 2023

Add a new TocDict class, which is a dictionary with fancy indexing. The TocDict class is used for results from various functions.

Closes: #29
Reviewed-by: Patrick Roddy [email protected]

@ntessore ntessore requested a review from paddyroddy September 9, 2023 07:34
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

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

Various suggestions

heracles/util.py Outdated Show resolved Hide resolved
heracles/util.py Show resolved Hide resolved
heracles/util.py Show resolved Hide resolved
heracles/util.py Show resolved Hide resolved
heracles/util.py Show resolved Hide resolved
heracles/util.py Show resolved Hide resolved
@paddyroddy paddyroddy self-requested a review September 11, 2023 09:47
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

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

(meant to be just a comment)

@ntessore ntessore changed the title ENH: tocdict class for results ENH: TocDict class for results Sep 11, 2023
@paddyroddy paddyroddy self-requested a review September 11, 2023 10:47
@ntessore ntessore merged commit 094922b into main Sep 11, 2023
8 checks passed
@ntessore ntessore deleted the pr/tocdict branch September 11, 2023 10:49
ntessore added a commit that referenced this pull request Sep 12, 2023
Changes the package layout to include a `heracles.core` module for
shared functionality (e.g. `TocDict`, #30).

This improves import performance a little, since not all imports from
`heracles.util` are always needed (timing-related functionality).

Where `heracles.util` functionality is conditionally used, the import is
moved into the function definition, instead of being a global import.

Reviewed-by: Patrick Roddy <[email protected]>
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.

Create a utility class for toc dicts
2 participants