Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWeiHaoMa committed Dec 23, 2024
1 parent 8f45cee commit 93d7e25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
coverage run -m pytest --datetime-increments-limit=150 --number-of-dfs-to-stop-at=15 -m "not completion"
coverage run -m pytest --datetime-increments-limit=150 --number-of-dfs-to-stop-at=60 -m "not completion"
- name: Generate coverage report
run: |
coverage report -m
Expand Down
9 changes: 6 additions & 3 deletions MISOReports/MISOReports.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ def get_url(

report = MISOReports.report_mappings[report_name]

if file_extension is None:
file_extension = report.type_to_parse

res = report.url_builder.build_url(
file_extension=file_extension,
ddatetime=ddatetime,
Expand Down Expand Up @@ -1181,7 +1184,7 @@ def add_to_datetime(
url_builder=MISORTWDDataBrokerURLBuilder(
target="getimporttotal5",
supported_extensions=["csv", "xml", "json"],
default_extension="csv",
default_extension="json",
),
type_to_parse="json",
parser=parsers.parse_importtotal5,
Expand Down Expand Up @@ -1524,8 +1527,8 @@ def add_to_datetime(
),
type_to_parse="csv",
parser=parsers.parse_asm_rtmcp_final,
example_url="https://docs.misoenergy.org/marketreports/20220101_asm_rtmcp_final.csv",
example_datetime=datetime.datetime(year=2022, month=1, day=1),
example_url="https://docs.misoenergy.org/marketreports/20230101_asm_rtmcp_final.csv",
example_datetime=datetime.datetime(year=2023, month=1, day=1),
),

"asm_rtmcp_prelim": Report( # Checked 2024-11-29.
Expand Down

0 comments on commit 93d7e25

Please sign in to comment.