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
API Plot labels for XSData object; Other cleanups #402
Merged
drewejohnson
merged 12 commits into
CORE-GATECH-GROUP:master
from
drewejohnson:xsplot-labels
May 12, 2020
Merged
API Plot labels for XSData object; Other cleanups #402
drewejohnson
merged 12 commits into
CORE-GATECH-GROUP:master
from
drewejohnson:xsplot-labels
May 12, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Provides len, contains, getitem, get, keys, values, items Add dedicated pytest test file for the xsplot reader
Index into the cross section data given a reaction MT that exists in MT list. Emulates dictionary-like access, but relies on finding the index from self.MT
Given a reaction MT, return it's corresponding description. Works for positive or negative
The following modes are available: 1. None -> get descriptions from self.describe 2. str -> only if a single MT is plotted 3. mapping {mt: label} -> Provide a label for one or all MTs plotted. Does not have to contain all the reactions. Missing MTs will fall back to their description 4. Iterable -> Must have length equal to MTs being plotted. Provide labels in the order of iteration
Remove some unused PNGs as well
Tests dictionary access, plot labeling, and describe method
drewejohnson
added
documentation
API - Compatible
Changes to our API that require no user actions
labels
May 4, 2020
DanKotlyar
approved these changes
May 4, 2020
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this pull request
May 23, 2020
Backport of features included since 0.9.3 release Includes the following PRs git log --online --pretty="%s" --merges 0.9.3... Merge pull request CORE-GATECH-GROUP#407 from drewejohnson/fix-readme Merge pull request CORE-GATECH-GROUP#406 from drewejohnson/r0.9.3 Merge pull request CORE-GATECH-GROUP#405 from nicoloabrate/master Merge pull request CORE-GATECH-GROUP#404 from drewejohnson/update-git-attr Merge pull request CORE-GATECH-GROUP#402 from drewejohnson/xsplot-labels Merge pull request CORE-GATECH-GROUP#400 from drewejohnson/lib2-notes Merge pull request CORE-GATECH-GROUP#399 from CORE-GATECH-GROUP/docs-sphinx-2.0 Merge pull request CORE-GATECH-GROUP#397 from drewejohnson/port-list-of-arrays Merge pull request CORE-GATECH-GROUP#398 from drewejohnson/det-supers Merge pull request CORE-GATECH-GROUP#396 from drewejohnson/df-arg-renaming Merge pull request CORE-GATECH-GROUP#394 from drewejohnson/0.9.3-update-docs Merge pull request CORE-GATECH-GROUP#395 from drewejohnson/hist-branch-dictlike Merge pull request CORE-GATECH-GROUP#393 from drewejohnson/less-metadata Merge pull request CORE-GATECH-GROUP#392 from drewejohnson/better-access Merge pull request CORE-GATECH-GROUP#391 from drewejohnson/dep-dataframe Merge pull request CORE-GATECH-GROUP#390 from drewejohnson/api-dep-attributes Merge pull request CORE-GATECH-GROUP#388 from drewejohnson/xsplot-branch Merge pull request CORE-GATECH-GROUP#378 from drewejohnson/better-build Merge pull request CORE-GATECH-GROUP#376 from drewejohnson/unbundle-data-files Merge pull request CORE-GATECH-GROUP#370 from drewejohnson/results-loa Merge pull request CORE-GATECH-GROUP#369 from drewejohnson/merge-0.9.1-develop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR closes #401 by allowing the user to provide labels explicitly to the plot method. The following modes are available:
Some other key changes (all back-compatible)
XSPlotReader
- 2c13403__getitem__
andget
toXSData
- 9db302cmetadata
for both the reader fd1b21f and the data object e040b80. Prefer attributes of energies and majorant over metadata dictionary