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

discr sys fits/service mods, bugfixes, docstrings, code formatting, remove proprietary code #514

Merged
merged 31 commits into from
Dec 20, 2018

Conversation

jllanfranchi
Copy link
Contributor

@jllanfranchi jllanfranchi commented Nov 26, 2018

  • core/binning.py
    • is_bin_spacing_log check always using allclose for FP32 compatibility
  • core/base_stage.py
    • black formatting only
  • core/pi_stage.py
    • add some method docstrings (not all added / totally useful, but should be better now)
    • PISA and black formatting
  • core/pipeline.py
    • fix regression which removed raising AttributeError when __getattr__ is called with non-existent stage / non-existent attr
    • black formatting
  • core/stage.py
    • black formatting
  • utils/format.py
    • binary prefixes explicitly fail if values < 0
  • setup.py
    • add fit_discrete_sys_nd.py as pisa-fit_discrete_sys_nd as a script installed by PISA
  • stages/data/icc.py
    • icc params documented with actual params used
  • stages/xsec/genie_sys.py
    • docstring fixups
    • black formatting
  • stages/discr_sys/pi_hyperplanes.py
    • fixup, augment docstrings
    • fit_cfg able to modify specified pipeline config incl. an apply_to_all_sets section
    • fix logging outputs for modifications to in-mem pipeline config(s)
    • do as much stuff as possible to get to errors faster if they exist
    • add units handling for interpreting values of hyperplane fit params
    • TODO for now, all pi_hyperplanes binning checks are disabled (TODO: enable but check at FP32 precision!)
    • misc fixups
    • black formatting
  • scripts/fit_discr_sys_nd.py
    • add units handling for hyperplane fit params
    • record more info to fit json file (binning (at top level), fit cfg path and text, pipeline cfg paths and texts, hyperplane fit param units)
    • allow modifying pipeline configs specified in fit configs
    • document the discrete fit config file format, "features" (units, modifying a pipeline config) at the top of the script
    • code cleanups
    • black formatting
  • pi_simple
    • Remove proprietary code but can use that code from fridge (error message added to inform user of the path needed in PISA_RESOURCES if the code cannot be found)
    • Black formatting, pylint ignores added where appropriate
  • pylintrc

* binning.py: is_bin_spacing_log check using allclose for FP32 compat
* fit_discrete_sys_nd.py: cleanups
* format.py: binary prefixes explicitly only for values >= 0
* setup.py: add fit_discrete_sys_nd.py as pisa-fit_discrete_sys_nd on install
…g paths and texts); do as much stuff as possible to get to errors faster if they exist
* add documentation of fit json file format in pi_hyperplanes (TODO: also document in fit_discrete_sys_nd.py)
* add units to fit config, pi_hyperplanes (doesn't break w/o though, just assumes dimensionless)
* for now, all pi_hyperplanes binning checks are disabled (TODO: enable but check at FP32 precision!)
@jllanfranchi jllanfranchi changed the title [WIP] Work on several things; will add info later [WIP] discr sys fits/service mods, bugfixes, docstrings, and code formatting Nov 26, 2018
@jllanfranchi jllanfranchi changed the title [WIP] discr sys fits/service mods, bugfixes, docstrings, and code formatting discr sys fits/service mods, bugfixes, docstrings, code formatting, remove proprietary code Dec 20, 2018
@jllanfranchi
Copy link
Contributor Author

Merging as squash merge so we can back changes out if there are issues that arise.

@jllanfranchi jllanfranchi merged commit 135a286 into dev Dec 20, 2018
@jllanfranchi jllanfranchi deleted the small_fixups branch January 18, 2019 16:29
jllanfranchi added a commit that referenced this pull request Feb 13, 2019
…emove proprietary code (#514)

* core/binning.py
  * `is_bin_spacing_log` check always using `allclose` for FP32 compatibility
* core/base_stage.py
  * black formatting only
* core/pi_stage.py
  * add some method docstrings (not all added / totally useful, but should be better now)
  * PISA and black formatting
* core/pipeline.py
  * fix regression which removed raising AttributeError when `__getattr__` is called with non-existent stage / non-existent attr
  * black formatting
* core/stage.py
  * black formatting
* utils/format.py
  * binary prefixes explicitly fail if values < 0
* setup.py
  * add `fit_discrete_sys_nd.py` as `pisa-fit_discrete_sys_nd` as a script installed by PISA
* stages/data/icc.py
  * icc params documented with actual params used
* stages/xsec/genie_sys.py
  * docstring fixups
  * black formatting
* stages/discr_sys/pi_hyperplanes.py
  * fixup, augment docstrings
  * fit_cfg able to modify specified pipeline config incl. an apply_to_all_sets section
  * fix logging outputs for modifications to in-mem pipeline config(s)
  *  do as much stuff as possible to get to errors faster if they exist
  * add units handling for interpreting values of hyperplane fit params
  * **TODO** for now, all pi_hyperplanes binning checks are disabled (TODO: enable but check at FP32 precision!)
  * misc fixups
  * black formatting
* scripts/fit_discr_sys_nd.py
  * add units handling for hyperplane fit params
  * record more info to fit json file (binning (at top level), fit cfg path and text, pipeline cfg paths and texts, hyperplane fit param units)
  * allow modifying pipeline configs specified in fit configs
  * document the discrete fit config file format, "features" (units, modifying a pipeline config) at the top of the script
  * code cleanups
  * black formatting
* pi_simple
  * Remove proprietary code but can use that code from fridge (error message added to inform user of the path needed in PISA_RESOURCES if the code cannot be found)
  * Black formatting, pylint ignores added where appropriate
* pylintrc
  * add C0330 as per psf/black#48
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

2 participants