Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
doc(CHANGES,mdl): add GWOTS columns & TODOLIST sphinx plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Aug 25, 2019
1 parent 1e30ea1 commit dd0eb3d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ TODOs
* model/core: Accept units on all quantities.
* core: Move calculations as class-methods to provide for overriding certain parts of the algorithm.
* core: execute part of the calculation-graph based on the the data given/asked.
.. todolist::


Changelog
Expand Down
7 changes: 7 additions & 0 deletions docs/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ Schema
type:
- object
- array
grid_wots:
description: |
A dataframe with 2-level columns (item, gear)
- `p_avail_stable`: reduced by safety-margin, but not by ASM
- `p_avail`: reduced by both SM & ASM
- `p_resist`: road loads power
- `p_req`: road loads & cycle power
pmr:
title: Power to Unladen-Mass
description: Power/unladen-Mass ratio (W/kg).
Expand Down
17 changes: 15 additions & 2 deletions wltp/datamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ def _get_model_schema(additional_properties=False):
type:
- object
- array
grid_wots:
description: |2
A dataframe with 2-level columns (item, gear)
- `p_avail_stable`: reduced by safety-margin, but not by ASM
- `p_avail`: reduced by both SM & ASM
- `p_resist`: road loads power
- `p_req`: road loads & cycle power
pmr:
title: Power to Unladen-Mass
description: Power/unladen-Mass ratio (W/kg).
Expand Down Expand Up @@ -918,9 +925,15 @@ def yield_load_curve_errors(mdl):


def yield_n_min_errors(mdl):
# TODO: accept ARRAY `n_min_drive`
# TODO: min(Nwot) <= n_min_drive_set
# NOTE: cannot check `t_end_cold` is in stop-gap, wltc-class decision not made yet.
"""
.. TODO::
Support ARRAY for `n_min_drive_up/dn`.
.. TODO::
cannot Checking of `t_end_cold` is in stop-gap during datamodel-validation;
wltc-class decision not made yet.
"""

d = wio.pstep_factory.get()
# g = wio.pstep_factory.get().gears
Expand Down

0 comments on commit dd0eb3d

Please sign in to comment.