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

API Plot labels for XSData object; Other cleanups #402

Merged
merged 12 commits into from May 12, 2020

Commits on May 4, 2020

  1. API Add dictionary-like access to XSPlotReader

    Provides len, contains, getitem, get, keys, values, items
    
    Add dedicated pytest test file for the xsplot reader
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    2c13403 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad9fb99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdfa349 View commit details
    Browse the repository at this point in the history
  4. API Provide XSData __getitem__, get methods

    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
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    9db302c View commit details
    Browse the repository at this point in the history
  5. Provide XSData.describe for explaining MTs

    Given a reaction MT, return it's corresponding description.
    Works for positive or negative
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    fca3588 View commit details
    Browse the repository at this point in the history
  6. API XSData.plot supports labels argument

    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
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    b837758 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fd1b21f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e040b80 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f77fbed View commit details
    Browse the repository at this point in the history
  10. DOC Update XSPlot notebook, example

    Remove some unused PNGs as well
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    5b4d81f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5a37a9b View commit details
    Browse the repository at this point in the history
  12. TST Add pytest specific XSPlot tester

    Tests dictionary access, plot labeling, and describe method
    drewejohnson committed May 4, 2020
    Configuration menu
    Copy the full SHA
    27de174 View commit details
    Browse the repository at this point in the history