You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add_task(c: Computer) or similar for describing computations in c.
__call__(): the actual callable to be executed.
__repr__(): a more readable string representation for Computer.describe().
etc.
These should be easier to maintain if they are collected, instead of the separate pair of e.g. Computer.convert_pyam (for adding task(s)) and .compat.pyam.computations.as_pyam (the actual callable)
This will also alow to reduce complexity of this code in Computer.add():
This can be the location for:
add_task(c: Computer)
or similar for describing computations inc
.__call__()
: the actual callable to be executed.__repr__()
: a more readable string representation forComputer.describe()
.These should be easier to maintain if they are collected, instead of the separate pair of e.g.
Computer.convert_pyam
(for adding task(s)) and.compat.pyam.computations.as_pyam
(the actual callable)This will also alow to reduce complexity of this code in
Computer.add()
:genno/genno/core/computer.py
Lines 144 to 162 in 43a1702
The Computer can:
Computer.modules
.add_task()
method, call that directly; else, simply instantiate.The text was updated successfully, but these errors were encountered: