What’s new¶
v1.2.0 (2021-03-08)¶
Quantity
becomes an actual class, rather than a factory function;AttrSeries
andSparseDataArray
are subclasses (PR #37).AttrSeries
gains methodsbfill()
,cumprod()
,ffill()
, andshift()
(PR #37)computations.load_file()
uses the skipinitialspace parameter topandas.read_csv()
; extra dimensions not mentioned in the dims parameter are preserved (PR #37).AttrSeries.sel()
acceptsxarray.DataArray
for xarray-style indexing (PR #37).
v1.1.1 (2021-02-22)¶
Bug fixes¶
Computer.add_single()
incorrectly callscheck_keys()
on iterables (e.g.pandas.DataFrame
) that are not computations (PR #36).
v1.1.0 (2021-02-16)¶
computations.add()
transforms compatible units, and raises an exception for incompatible units (PR #31).Improve handling of scalar quantities (PR #31).
Plot
is fault-tolerant: if any of the input quantities are missing, it becomes a no-op (PR #31).Computer.configure()
accepts a fail argument, allowing partial handling of configuration data/files, with errors logged but not raised (PR #31).New
computations.pow()
(PR #31).
v1.0.0 (2021-02-13)¶
Adjust for usage by
ixmp.reporting
andmessage_ix.reporting
(PR #28):Reduce minimum Python version to 3.6. This is lower than the minimum version for xarray (3.7), but matches ixmp, etc.
Remove
compat.ixmp
; this code has been moved toixmp.reporting
, replacing what was there. Likewise, removecompat.message_ix
.Simplify the form & parsing of
iamc:
section entries in configuration files:Remove unused feature to add
group_sum()
to the chain of tasks.Keys now conform more closely to the arguments of
Computer.convert_pyam()
.
Move argument-checking from
as_pyam()
toconvert_pyam()
.- Simplify semantics of
genno.config.handles()
decorator. Remove
CALLBACKS
feature, for now.
- Simplify semantics of
Computer.get_comp()
andrequire_compat()
are now public methods.Expand tests.
Protect
Computer
configuration fromdask.optimization.cull()
; this prevents infinite recursion if the configuration contains strings matching keys in the graph. Addunquote()
(#25, PR #26).Simplify
collect_units()
and improve unit handling inratio()
(#25, PR #26).Add file-based caching via
Computer.cache()
andgenno.caching
(#20, PR #24).
v0.4.0 (2021-02-07)¶
Add file-based configuration in
genno.config
and associated documentation (#8, PR #16).
v0.3.0 (2021-02-05)¶
Add Plotnine (compat.plotnine) compatibility (PR #15).
Add a Concepts and usage overview to the documentation (PR #13).
v0.2.0 (2021-01-18)¶
Increase test coverage to 100% (PR #12).
Port code from
message_ix.reporting
(PR #11).Add
compat.pyam
.Add a name parameter to
load_file()
.
v0.1.0 (2021-01-10)¶
Initial code port from
ixmp.reporting
.