Closed irm-codebase closed 4 months ago
Thanks, this is very useful feedback!
@irm-codebase thanks for the feedback.
Some responses / requests for additional thoughts:
10/11. @sjpfenninger and I went back and forth on this a few times, hence why there's some confusion between different pages! We opted for "components" to come first so that you get some context via more complex examples before going into detail on the "syntax". Would it have been sufficiently clear if you had read the "components" page first?
\quad
and \qquad
:$\forall tech \in techs, node \in nodes, step \in steps, year \in years \quad \text{if} \quad \exists (\mathbf{param}_{tech,node}):$ $\quad \text{if some condition}:$
$\qquad var{tech,node,step,year} = othervar{tech,node,step,year}\cdot \mathbf{param}_{tech,node}$
Math code, in case GitHub does not allow you to see it:
$\forall tech \in techs, node \in nodes, step \in steps, year \in years \quad \text{if} \quad \exists (\mathbf{param}_{tech,node}):$
$\quad \text{if some condition}:$
$\qquad var_{tech,node,step,year} = othervar_{tech,node,step,year}\cdot \mathbf{param}_{tech,node}$
Description
This is a list of things I found on the documentation of the new release that could be improved. Most are minor things.
time_subset
,parameters
,tech_groups
.time_subset
are inclusive (does['2005-01-01', '2005-01-05']
run up to or include May?)techs
. Forcost_
parameters, the documentation mentions they must define a cost class, but it's unclear what that means or what the code will check for. Is it anindex
or adims
? Will the library return an error if the user sets this incorrectly?nodes
has something similar fordims
: if the users specifiesnodes
, will the code catch it?nodes
deactivation: move thenodes
deactivation comment from thetechs
section to thenodes
section, to make it easier to find.nodes
usingconstraints
to modify techs: in the nodes section it's mentioned that you overwritetechs
settings by usingconstraints
. I think this term is a bit confusing (it's not used anywhere else before, and it's seldom mentioned in the documentation). Is it really necessary? Otherwise, I'd just remove it since it's clear that anything below atechs
will be a parameter, andcosts_
already have standardised naming.Or (for an even more readable alternative):
foreach
,where
math syntax examples: when reading the section, it's a bit difficult to see how these are used since there is no complete example. Adding one at the start would solve this. Or moving theequation
section to the top, since it's where most of these terms are used.Related links
cost_
)nodes
comment that is hard to find)constraints
to modifytechs
)where
,foreach
usage is unclear)Version
v0.7.0
Proposed change
Some suggested updates to the documentation.