Skip to content

Commit 02a5cda

Browse files
committed
Apply suggestions
1 parent 9b3e947 commit 02a5cda

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/generate_input_format_doc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ def generate_markdown() -> str:
4444

4545
def load_sections() -> Iterable[Section]:
4646
for title, patterns in _FILE_ORDER.items():
47+
paths = []
4748
for pattern in patterns:
48-
paths = map(str, _SCHEMA_DIR.glob(f"{pattern}.yaml"))
49-
files = (load_file(Path(path)) for path in sorted(paths))
50-
yield Section(title, files)
49+
paths.extend(map(str, _SCHEMA_DIR.glob(f"{pattern}.yaml")))
50+
files = (load_file(Path(path)) for path in sorted(paths))
51+
yield Section(title, files)
5152

5253

5354
def load_file(path: Path) -> File:

docs/input_format.md.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This file contains information about the input file format for MUSE 2.0.
2626
(such as a requirement that the value is >=0 etc.). -#}
2727
{%- if file.notes %}
2828
#### Notes
29+
2930
{{ file.notes }}
3031
{%- endif %}
3132

schemas/input/demand.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fields:
1313
type: string
1414
description: The region to which this entry applies
1515
notes: A region ID
16-
- name: years
16+
- name: year
1717
type: string
1818
description: The year(s) to which this entry applies
1919
notes: One or more milestone years separated by semicolons or `all`

0 commit comments

Comments
 (0)