Skip to content

Initialize HPWHsim presets from embedded CBOR #551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
55c4b7c
Update HPWHsim.
spahrenk May 28, 2025
6b599a4
Update HPWHsim.
spahrenk May 29, 2025
e56a092
Update refs.
spahrenk May 29, 2025
b9415bf
Replace one ref.
spahrenk May 29, 2025
cc39a6b
Install uv in CI.
Jun 2, 2025
14f2495
Fix branch.
Jun 2, 2025
b0acc84
Updaet HPWHsim.
spahrenk Jun 2, 2025
5e2a5f5
Update HPWHsim.
spahrenk Jun 3, 2025
51b7e9a
Replace Mac refs.
spahrenk Jun 4, 2025
53dae41
Update HPWHsim.
Jun 4, 2025
17a461a
Updaate HPWHsim.
Jun 4, 2025
fb6961f
Update win32 refs.
Jun 4, 2025
a4215d7
Merge branch 'init-presets-from-cbor-hpwh' of https://github.com/cse-…
Jun 4, 2025
d9fdddf
Replace mac refs.
spahrenk Jun 4, 2025
01462e6
Update HPWHsim.
spahrenk Jun 4, 2025
70a6a29
Update HPWHsim.
Jun 9, 2025
8eb32eb
Merge branch 'init-presets-from-cbor-hpwh' of https://github.com/cse-…
Jun 9, 2025
31c9c9a
Merge branch 'main' into init-presets-from-cbor-hpwh
Jun 9, 2025
f55dac4
Change fnc. args.
Jun 13, 2025
2777351
Update dhwx.rep
Jun 13, 2025
70deaa3
Update HPWHsim.
Jun 13, 2025
85c1b72
Update HPWHsim; iclean-up model names.
Jun 19, 2025
3783a22
Update HPWHsim.
Jun 19, 2025
11107d8
Update HPWHsim.
Jun 19, 2025
9911c81
Change PolySet scope.
Jun 20, 2025
e86136a
Change uv/python workflow.
Jun 20, 2025
ad8f8e9
Adjust Sanco names; restore ref.
Jun 20, 2025
93cb265
Fix Sanco model #s.
Jun 21, 2025
e8e1563
Merge remote-tracking branch 'origin/main' into init-presets-from-cbo…
spahrenk Jun 21, 2025
ec27ad9
Use alternate HPWHsim.
Jun 27, 2025
bfce43f
Replace ref.
Jun 27, 2025
327c2c7
Update HPWHsim.
Jun 30, 2025
3143701
Replace refs.
spahrenk Jun 30, 2025
be93e3b
Update HPWHsim.
Jun 30, 2025
f4dc753
Update HPWHsim.
Jun 30, 2025
8399df7
Update workflow.
Jul 2, 2025
9911ab0
Update HPWHsim.
Jul 8, 2025
a3240ac
Update HPWHsim.
Jul 8, 2025
6f1d99c
Replace refs.
Jul 8, 2025
a5f2a27
Update HPWHsim.
Jul 9, 2025
310f6e6
Merge remote-tracking branch 'origin/main' into init-presets-from-cbo…
spahrenk Jul 9, 2025
8ca0b3a
Update HPWHsim.
Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
- name: Get number of CPU cores # Can replace when CMake is upgraded to 3.29
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: Build CSE
uses: ./.github/actions/build-cse
with:
Expand Down
281 changes: 140 additions & 141 deletions src/dhwcalc.cpp

Large diffs are not rendered by default.

2,002 changes: 1,001 additions & 1,001 deletions test/ref-macos64-appleclang/CHDHW.REP

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions test/ref-macos64-appleclang/DHWDU.rep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

! Log for Run 001:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -60102,7 +60102,7 @@ Hourly Cond Report, Thu 31-Dec

! Log for Run 002:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -61520,18 +61520,18 @@ Input for Run 001:



! CSE 0.925.0+concat.45b7b13a.25 for Win32 console run(s) done: Tue 20-May-25 9:12:26 pm
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console run(s) done: Wed 04-Jun-25 6:12:56 pm

! Executable: /users/runner/work/cse/cse/build/cse-appleclang-64
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.cc0bb806.445)
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.2a1da388.578)
! Command line: -x! -b -t1 dhwDU
! Input file: /Users/runner/work/cse/cse/test/dhwDU.cse
! Report file: /USERS/RUNNER/WORK/CSE/CSE/TEST/DHWDU.REP

! Timing info --

! Input: Time = 0.15 Calls = 3 T/C = 0.0500
! AutoSizing: Time = 0.23 Calls = 1 T/C = 0.2340
! Simulation: Time = 4.02 Calls = 2 T/C = 2.0095
! Reports: Time = 0.05 Calls = 2 T/C = 0.0230
! Total: Time = 4.45 Calls = 1 T/C = 4.4490
! Input: Time = 0.18 Calls = 3 T/C = 0.0603
! AutoSizing: Time = 0.32 Calls = 1 T/C = 0.3210
! Simulation: Time = 4.42 Calls = 2 T/C = 2.2105
! Reports: Time = 0.05 Calls = 2 T/C = 0.0240
! Total: Time = 4.97 Calls = 1 T/C = 4.9730
140 changes: 70 additions & 70 deletions test/ref-macos64-appleclang/DHW_AQUATHERMAIRE.REP

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions test/ref-macos64-appleclang/DHW_C.REP
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Yr 0 0 0 0 0 0 0

! Log for Run 001:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -1771,18 +1771,18 @@ Input for Run 001:



! CSE 0.925.0+concat.45b7b13a.25 for Win32 console run(s) done: Tue 20-May-25 9:12:25 pm
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console run(s) done: Wed 04-Jun-25 6:12:55 pm

! Executable: /users/runner/work/cse/cse/build/cse-appleclang-64
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.cc0bb806.445)
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.2a1da388.578)
! Command line: -x! -b -t1 dhw_C
! Input file: /Users/runner/work/cse/cse/test/dhw_C.cse
! Report file: /USERS/RUNNER/WORK/CSE/CSE/TEST/DHW_C.REP

! Timing info --

! Input: Time = 0.10 Calls = 1 T/C = 0.1020
! Input: Time = 0.10 Calls = 1 T/C = 0.1040
! AutoSizing: Time = 0.00 Calls = 0 T/C = 0.0000
! Simulation: Time = 1.11 Calls = 1 T/C = 1.1120
! Simulation: Time = 1.82 Calls = 1 T/C = 1.8250
! Reports: Time = 0.00 Calls = 1 T/C = 0.0010
! Total: Time = 1.22 Calls = 1 T/C = 1.2160
! Total: Time = 1.93 Calls = 1 T/C = 1.9310
22 changes: 11 additions & 11 deletions test/ref-macos64-appleclang/DHW_DR.REP
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Day 39.430 0 0 0 10.206 25.961 0 0 0 0 0

! Log for Run 001:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -5471,7 +5471,7 @@ Day 35.682 0 0 0 11.241 21.202 0 0 0 0 0

! Log for Run 002:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -5868,7 +5868,7 @@ Day 36.089 0 0 0 11.375 22.382 0 0 0 0 0

! Log for Run 003:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -6265,7 +6265,7 @@ Day 31.636 0 0 0 12.737 15.399 0 0 0 0 0

! Log for Run 004:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand Down Expand Up @@ -6662,7 +6662,7 @@ Day 28.734 0 0 0 13.654 12.446 0 0 0 0 0

! Log for Run 005:

! CSE 0.925.0+concat.45b7b13a.25 for Win32 console
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console



Expand All @@ -6678,18 +6678,18 @@ Input for Run 005:



! CSE 0.925.0+concat.45b7b13a.25 for Win32 console run(s) done: Tue 20-May-25 9:12:29 pm
! CSE 0.925.0+init-presets-from-cbor-hpwh.a4215d7d.42 for Win32 console run(s) done: Wed 04-Jun-25 6:13:00 pm

! Executable: /users/runner/work/cse/cse/build/cse-appleclang-64
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.cc0bb806.445)
! ? (enExeInfo fail) (HPWH 1.25.0+HEAD.2a1da388.578)
! Command line: -x! -b -t1 dhw_dr
! Input file: /Users/runner/work/cse/cse/test/dhw_dr.cse
! Report file: /USERS/RUNNER/WORK/CSE/CSE/TEST/DHW_DR.REP

! Timing info --

! Input: Time = 0.79 Calls = 5 T/C = 0.1578
! Input: Time = 0.60 Calls = 5 T/C = 0.1204
! AutoSizing: Time = 0.00 Calls = 0 T/C = 0.0000
! Simulation: Time = 2.54 Calls = 5 T/C = 0.5074
! Reports: Time = 0.01 Calls = 5 T/C = 0.0010
! Total: Time = 3.33 Calls = 1 T/C = 3.3340
! Simulation: Time = 3.65 Calls = 5 T/C = 0.7290
! Reports: Time = 0.01 Calls = 5 T/C = 0.0026
! Total: Time = 4.26 Calls = 1 T/C = 4.2620
Loading