mcgibbon / sympl

A toolkit for building planetary/Earth system models in Python
http://sympl.readthedocs.io
Other
50 stars 14 forks source link

Add ScaledInputOutputWrapper #16

Closed JoyMonteiro closed 6 years ago

JoyMonteiro commented 6 years ago

This Wrapper adds the ability to scale input/output/tendency quantities by an arbitrary floating point value. Only scalars for now.

codecov-io commented 6 years ago

Codecov Report

Merging #16 into master will increase coverage by 1.9%. The diff coverage is 98.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #16     +/-   ##
=========================================
+ Coverage   72.96%   74.86%   +1.9%     
=========================================
  Files          13       13             
  Lines        1069     1138     +69     
=========================================
+ Hits          780      852     +72     
+ Misses        289      286      -3
Impacted Files Coverage Δ
sympl/__init__.py 100% <ø> (ø) :arrow_up:
sympl/_core/util.py 93.31% <98.57%> (+1.51%) :arrow_up:
sympl/_core/base_components.py 77.61% <0%> (+2.23%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 51cc599...eac526e. Read the comment docs.

JoyMonteiro commented 6 years ago

Added scaling for diagnostics and Diagnostic.