Skip to content

Add product info #229

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 59 commits into
base: main
Choose a base branch
from
Open

Add product info #229

wants to merge 59 commits into from

Conversation

spahrenk
Copy link
Contributor

@spahrenk spahrenk commented Apr 8, 2025

Retains Description / ProductInformation for HPWH, Tank, Condenser, and Resistance objects. ProductInformation contains manufacturer and model_number fields. These fields are retained in a productInformation member variable for each object, and represented by an Entry class template that tracks whether the content has been set. This information is read/written from/to the corresponding JSON representations. For Preset specifications, the productInformation can be assigned during initialization, then exported as JSON. Several such examples have been added. File specifications are always designated as MODELS_CustomFile, so the information is omitted.

@spahrenk spahrenk self-assigned this Apr 8, 2025
@spahrenk spahrenk marked this pull request as draft April 8, 2025 16:45
@spahrenk spahrenk changed the base branch from main to use-weighted-dist April 9, 2025 15:04
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 56.39098% with 58 lines in your changes missing coverage. Please review.

Please upload report for BASE (use-weighted-dist@36c3d16). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/HPWHUtils.cc 18.52% 22 Missing ⚠️
src/Condenser.cc 64.52% 11 Missing ⚠️
src/Resistance.cc 66.67% 8 Missing ⚠️
src/HPWH.hh 0.00% 7 Missing ⚠️
src/Tank.cc 62.50% 6 Missing ⚠️
src/HPWH.cc 80.00% 3 Missing ⚠️
src/HPWHpresets.cc 92.31% 1 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##             use-weighted-dist     #229   +/-   ##
====================================================
  Coverage                     ?   71.19%           
====================================================
  Files                        ?       16           
  Lines                        ?     7342           
  Branches                     ?        0           
====================================================
  Hits                         ?     5227           
  Misses                       ?     2115           
  Partials                     ?        0           
Flag Coverage Δ
integration 71.19% <56.39%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

spahrenk added 15 commits April 9, 2025 11:32
…uct-info

# Conflicts:
#	scripts/python/data_model/build_data_model.py
#	src/Condenser.cc
#	src/HPWH.cc
#	src/HPWHUtils.cc
#	src/HPWHUtils.hh
#	src/Resistance.cc
#	test/models_json/AOSmithCAHP120.json
#	test/models_json/AOSmithHPTS40.json
#	test/models_json/AOSmithHPTS50.json
#	test/models_json/AOSmithHPTS66.json
#	test/models_json/AOSmithHPTS80.json
#	test/models_json/AOSmithHPTU50.json
#	test/models_json/AOSmithHPTU66.json
#	test/models_json/AOSmithHPTU80.json
#	test/models_json/AOSmithHPTU80_DR.json
#	test/models_json/AOSmithPHPT60.json
#	test/models_json/AOSmithPHPT80.json
#	test/models_json/AWHSTier3Generic40.json
#	test/models_json/AWHSTier3Generic50.json
#	test/models_json/AWHSTier3Generic65.json
#	test/models_json/AWHSTier3Generic80.json
#	test/models_json/AWHSTier4Generic40.json
#	test/models_json/AWHSTier4Generic50.json
#	test/models_json/AWHSTier4Generic65.json
#	test/models_json/AWHSTier4Generic80.json
#	test/models_json/AquaThermAire.json
#	test/models_json/BWC2020_65.json
#	test/models_json/BradfordWhiteAeroThermRE2H50.json
#	test/models_json/BradfordWhiteAeroThermRE2H65.json
#	test/models_json/BradfordWhiteAeroThermRE2H80.json
#	test/models_json/ColmacCxA_10_MP.json
#	test/models_json/ColmacCxA_10_SP.json
#	test/models_json/ColmacCxA_15_MP.json
#	test/models_json/ColmacCxA_15_SP.json
#	test/models_json/ColmacCxA_20_MP.json
#	test/models_json/ColmacCxA_20_SP.json
#	test/models_json/ColmacCxA_25_MP.json
#	test/models_json/ColmacCxA_25_SP.json
#	test/models_json/ColmacCxA_30_MP.json
#	test/models_json/ColmacCxA_30_SP.json
#	test/models_json/ColmacCxV_5_MP.json
#	test/models_json/ColmacCxV_5_SP.json
#	test/models_json/GE.json
#	test/models_json/GE2014STDMode.json
#	test/models_json/GE2014STDMode_80.json
#	test/models_json/GE502014.json
#	test/models_json/GE802014.json
#	test/models_json/Generic1.json
#	test/models_json/Generic2.json
#	test/models_json/Generic3.json
#	test/models_json/GenericUEF217.json
#	test/models_json/LG_APHWC50.json
#	test/models_json/LG_APHWC80.json
#	test/models_json/NyleC125A_C_MP.json
#	test/models_json/NyleC125A_C_SP.json
#	test/models_json/NyleC125A_MP.json
#	test/models_json/NyleC125A_SP.json
#	test/models_json/NyleC185A_C_MP.json
#	test/models_json/NyleC185A_C_SP.json
#	test/models_json/NyleC185A_MP.json
#	test/models_json/NyleC185A_SP.json
#	test/models_json/NyleC250A_C_MP.json
#	test/models_json/NyleC250A_C_SP.json
#	test/models_json/NyleC250A_MP.json
#	test/models_json/NyleC250A_SP.json
#	test/models_json/NyleC25A_SP.json
#	test/models_json/NyleC60A_C_MP.json
#	test/models_json/NyleC60A_C_SP.json
#	test/models_json/NyleC60A_MP.json
#	test/models_json/NyleC60A_SP.json
#	test/models_json/NyleC90A_C_MP.json
#	test/models_json/NyleC90A_C_SP.json
#	test/models_json/NyleC90A_MP.json
#	test/models_json/NyleC90A_SP.json
#	test/models_json/QAHV_N136TAU_HPB_SP.json
#	test/models_json/Rheem2020Build40.json
#	test/models_json/Rheem2020Build50.json
#	test/models_json/Rheem2020Build65.json
#	test/models_json/Rheem2020Build80.json
#	test/models_json/Rheem2020Prem40.json
#	test/models_json/Rheem2020Prem50.json
#	test/models_json/Rheem2020Prem65.json
#	test/models_json/Rheem2020Prem80.json
#	test/models_json/RheemHB50.json
#	test/models_json/RheemHBDR2250.json
#	test/models_json/RheemHBDR2265.json
#	test/models_json/RheemHBDR2280.json
#	test/models_json/RheemHBDR4550.json
#	test/models_json/RheemHBDR4565.json
#	test/models_json/RheemHBDR4580.json
#	test/models_json/RheemHPHD135.json
#	test/models_json/RheemHPHD60.json
#	test/models_json/RheemPlugInDedicated40.json
#	test/models_json/RheemPlugInDedicated50.json
#	test/models_json/RheemPlugInShared40.json
#	test/models_json/RheemPlugInShared50.json
#	test/models_json/RheemPlugInShared65.json
#	test/models_json/RheemPlugInShared80.json
#	test/models_json/Sanden120.json
#	test/models_json/Sanden40.json
#	test/models_json/Sanden80.json
#	test/models_json/Scalable_MP.json
#	test/models_json/Stiebel220e.json
#	test/models_json/TamScalable_SP.json
#	test/models_json/TamScalable_SP_2X.json
#	test/models_json/TamScalable_SP_Half.json
#	test/models_json/UEF2generic.json
#	test/models_json/restankRealistic.json
…ct-info

# Conflicts:
#	src/Condenser.cc
#	src/HPWH.cc
#	src/HPWH.hh
#	src/HPWHUtils.cc
#	src/HPWHUtils.hh
#	src/HPWHpresets.cc
#	src/Resistance.cc
#	test/models_json/AOSmithCAHP120.json
#	test/models_json/AOSmithHPTS40.json
#	test/models_json/AOSmithHPTS50.json
#	test/models_json/AOSmithHPTS66.json
#	test/models_json/AOSmithHPTS80.json
#	test/models_json/AOSmithHPTU50.json
#	test/models_json/AOSmithHPTU66.json
#	test/models_json/AOSmithHPTU80.json
#	test/models_json/AOSmithHPTU80_DR.json
#	test/models_json/AOSmithPHPT60.json
#	test/models_json/AOSmithPHPT80.json
#	test/models_json/AWHSTier3Generic40.json
#	test/models_json/AWHSTier3Generic50.json
#	test/models_json/AWHSTier3Generic65.json
#	test/models_json/AWHSTier3Generic80.json
#	test/models_json/AWHSTier4Generic40.json
#	test/models_json/AWHSTier4Generic50.json
#	test/models_json/AWHSTier4Generic65.json
#	test/models_json/AWHSTier4Generic80.json
#	test/models_json/AquaThermAire.json
#	test/models_json/BWC2020_65.json
#	test/models_json/BradfordWhiteAeroThermRE2H50.json
#	test/models_json/BradfordWhiteAeroThermRE2H65.json
#	test/models_json/BradfordWhiteAeroThermRE2H80.json
#	test/models_json/ColmacCxA_10_MP.json
#	test/models_json/ColmacCxA_10_SP.json
#	test/models_json/ColmacCxA_15_MP.json
#	test/models_json/ColmacCxA_15_SP.json
#	test/models_json/ColmacCxA_20_MP.json
#	test/models_json/ColmacCxA_20_SP.json
#	test/models_json/ColmacCxA_25_MP.json
#	test/models_json/ColmacCxA_25_SP.json
#	test/models_json/ColmacCxA_30_MP.json
#	test/models_json/ColmacCxA_30_SP.json
#	test/models_json/ColmacCxV_5_MP.json
#	test/models_json/ColmacCxV_5_SP.json
#	test/models_json/GE.json
#	test/models_json/GE2014STDMode.json
#	test/models_json/GE2014STDMode_80.json
#	test/models_json/GE502014.json
#	test/models_json/GE802014.json
#	test/models_json/Generic1.json
#	test/models_json/Generic2.json
#	test/models_json/Generic3.json
#	test/models_json/GenericUEF217.json
#	test/models_json/LG_APHWC50.json
#	test/models_json/LG_APHWC80.json
#	test/models_json/NyleC125A_C_MP.json
#	test/models_json/NyleC125A_C_SP.json
#	test/models_json/NyleC125A_MP.json
#	test/models_json/NyleC125A_SP.json
#	test/models_json/NyleC185A_C_MP.json
#	test/models_json/NyleC185A_C_SP.json
#	test/models_json/NyleC185A_MP.json
#	test/models_json/NyleC185A_SP.json
#	test/models_json/NyleC250A_C_MP.json
#	test/models_json/NyleC250A_C_SP.json
#	test/models_json/NyleC250A_MP.json
#	test/models_json/NyleC250A_SP.json
#	test/models_json/NyleC25A_SP.json
#	test/models_json/NyleC60A_C_MP.json
#	test/models_json/NyleC60A_C_SP.json
#	test/models_json/NyleC60A_MP.json
#	test/models_json/NyleC60A_SP.json
#	test/models_json/NyleC90A_C_MP.json
#	test/models_json/NyleC90A_C_SP.json
#	test/models_json/NyleC90A_MP.json
#	test/models_json/NyleC90A_SP.json
#	test/models_json/QAHV_N136TAU_HPB_SP.json
#	test/models_json/Rheem2020Build40.json
#	test/models_json/Rheem2020Build50.json
#	test/models_json/Rheem2020Build65.json
#	test/models_json/Rheem2020Build80.json
#	test/models_json/Rheem2020Prem40.json
#	test/models_json/Rheem2020Prem50.json
#	test/models_json/Rheem2020Prem65.json
#	test/models_json/Rheem2020Prem80.json
#	test/models_json/RheemHB50.json
#	test/models_json/RheemHBDR2250.json
#	test/models_json/RheemHBDR2265.json
#	test/models_json/RheemHBDR2280.json
#	test/models_json/RheemHBDR4550.json
#	test/models_json/RheemHBDR4565.json
#	test/models_json/RheemHBDR4580.json
#	test/models_json/RheemHPHD135.json
#	test/models_json/RheemHPHD60.json
#	test/models_json/RheemPlugInDedicated40.json
#	test/models_json/RheemPlugInDedicated50.json
#	test/models_json/RheemPlugInShared40.json
#	test/models_json/RheemPlugInShared50.json
#	test/models_json/RheemPlugInShared65.json
#	test/models_json/RheemPlugInShared80.json
#	test/models_json/Sanden120.json
#	test/models_json/Sanden40.json
#	test/models_json/Sanden80.json
#	test/models_json/Scalable_MP.json
#	test/models_json/Stiebel220e.json
#	test/models_json/TamScalable_SP.json
#	test/models_json/TamScalable_SP_2X.json
#	test/models_json/TamScalable_SP_Half.json
#	test/models_json/UEF2generic.json
#	test/models_json/restankRealistic.json
…uct-info

# Conflicts:
#	scripts/python/data_model/build_data_model.py
#	src/HPWH.cc
#	test/models_json/AOSmithCAHP120.json
#	test/models_json/AOSmithHPTS40.json
#	test/models_json/AOSmithHPTS50.json
#	test/models_json/AOSmithHPTS66.json
#	test/models_json/AOSmithHPTS80.json
#	test/models_json/AOSmithHPTU50.json
#	test/models_json/AOSmithHPTU66.json
#	test/models_json/AOSmithHPTU80.json
#	test/models_json/AOSmithHPTU80_DR.json
#	test/models_json/AOSmithPHPT60.json
#	test/models_json/AOSmithPHPT80.json
#	test/models_json/AWHSTier3Generic40.json
#	test/models_json/AWHSTier3Generic50.json
#	test/models_json/AWHSTier3Generic65.json
#	test/models_json/AWHSTier3Generic80.json
#	test/models_json/AWHSTier4Generic40.json
#	test/models_json/AWHSTier4Generic50.json
#	test/models_json/AWHSTier4Generic65.json
#	test/models_json/AWHSTier4Generic80.json
#	test/models_json/AquaThermAire.json
#	test/models_json/BWC2020_65.json
#	test/models_json/BradfordWhiteAeroThermRE2H50.json
#	test/models_json/BradfordWhiteAeroThermRE2H65.json
#	test/models_json/BradfordWhiteAeroThermRE2H80.json
#	test/models_json/ColmacCxA_10_MP.json
#	test/models_json/ColmacCxA_10_SP.json
#	test/models_json/ColmacCxA_15_MP.json
#	test/models_json/ColmacCxA_15_SP.json
#	test/models_json/ColmacCxA_20_MP.json
#	test/models_json/ColmacCxA_20_SP.json
#	test/models_json/ColmacCxA_25_MP.json
#	test/models_json/ColmacCxA_25_SP.json
#	test/models_json/ColmacCxA_30_MP.json
#	test/models_json/ColmacCxA_30_SP.json
#	test/models_json/ColmacCxV_5_MP.json
#	test/models_json/ColmacCxV_5_SP.json
#	test/models_json/GE.json
#	test/models_json/GE2014STDMode.json
#	test/models_json/GE2014STDMode_80.json
#	test/models_json/GE502014.json
#	test/models_json/GE802014.json
#	test/models_json/Generic1.json
#	test/models_json/Generic2.json
#	test/models_json/Generic3.json
#	test/models_json/GenericUEF217.json
#	test/models_json/LG_APHWC50.json
#	test/models_json/LG_APHWC80.json
#	test/models_json/NyleC125A_C_MP.json
#	test/models_json/NyleC125A_C_SP.json
#	test/models_json/NyleC125A_MP.json
#	test/models_json/NyleC125A_SP.json
#	test/models_json/NyleC185A_C_MP.json
#	test/models_json/NyleC185A_C_SP.json
#	test/models_json/NyleC185A_MP.json
#	test/models_json/NyleC185A_SP.json
#	test/models_json/NyleC250A_C_MP.json
#	test/models_json/NyleC250A_C_SP.json
#	test/models_json/NyleC250A_MP.json
#	test/models_json/NyleC250A_SP.json
#	test/models_json/NyleC25A_SP.json
#	test/models_json/NyleC60A_C_MP.json
#	test/models_json/NyleC60A_C_SP.json
#	test/models_json/NyleC60A_MP.json
#	test/models_json/NyleC60A_SP.json
#	test/models_json/NyleC90A_C_MP.json
#	test/models_json/NyleC90A_C_SP.json
#	test/models_json/NyleC90A_MP.json
#	test/models_json/NyleC90A_SP.json
#	test/models_json/QAHV_N136TAU_HPB_SP.json
#	test/models_json/Rheem2020Build40.json
#	test/models_json/Rheem2020Build50.json
#	test/models_json/Rheem2020Build65.json
#	test/models_json/Rheem2020Build80.json
#	test/models_json/Rheem2020Prem40.json
#	test/models_json/Rheem2020Prem50.json
#	test/models_json/Rheem2020Prem65.json
#	test/models_json/Rheem2020Prem80.json
#	test/models_json/RheemHB50.json
#	test/models_json/RheemHBDR2250.json
#	test/models_json/RheemHBDR2265.json
#	test/models_json/RheemHBDR2280.json
#	test/models_json/RheemHBDR4550.json
#	test/models_json/RheemHBDR4565.json
#	test/models_json/RheemHBDR4580.json
#	test/models_json/RheemHPHD135.json
#	test/models_json/RheemHPHD60.json
#	test/models_json/RheemPlugInDedicated40.json
#	test/models_json/RheemPlugInDedicated50.json
#	test/models_json/RheemPlugInShared40.json
#	test/models_json/RheemPlugInShared50.json
#	test/models_json/RheemPlugInShared65.json
#	test/models_json/RheemPlugInShared80.json
#	test/models_json/Sanden120.json
#	test/models_json/Sanden40.json
#	test/models_json/Sanden80.json
#	test/models_json/Scalable_MP.json
#	test/models_json/Stiebel220e.json
#	test/models_json/TamScalable_SP.json
#	test/models_json/TamScalable_SP_2X.json
#	test/models_json/TamScalable_SP_Half.json
#	test/models_json/UEF2generic.json
#	test/models_json/restankRealistic.json
…uct-info

# Conflicts:
#	src/HPWHHeatSource.cc
Base automatically changed from use-weighted-dist to main April 24, 2025 00:40
@spahrenk spahrenk marked this pull request as ready for review April 30, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants