-
Notifications
You must be signed in to change notification settings - Fork 2
tag_to_var_map arguments and tests #109
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5298d45
adding tag_to_var_map argument when calculate_values is called in tag.py
dalyw 829f502
Adding missing tag_to_var_map argument within process_binary_ops
dalyw ee7e965
Adding test for use of tag_to_var_map
dalyw dc96498
Simplifying logic to pass in tag_to_var_map in test_tag.py
dalyw e0e049a
Reformatting with black and addressing flake8 issues
dalyw 8c8f8e9
Reformatting with black and addressing flake8 issues
dalyw 33cc834
Merge branch 'feature/debug-calculate-values' of github.com:we3lab/py…
dalyw dae7367
Reverting unneeded changes in test_calculate_values
dalyw 80652c9
Adding 2 more tag_to_var_map arguments in process_unary_ops and proce…
dalyw 1ee8006
temp
dalyw 26c4f5d
Merge branch 'main' into feature/debug-calculate-values
dalyw 002e0e3
Adding additional test coverage for tag_to_var_map
dalyw 2edd1c0
Consolidating when TypeError is raised for unary_helper (for codecov)
dalyw 32bc0cd
Delete pype_schema/tests/data/EPANET_Net_3_temp.inp
dalyw 86b0a09
Delete pype_schema/tests/data/L-TOWN_temp.inp
dalyw 04b5b89
Delete pype_schema/tests/data/valve_temp.inp
dalyw 1bdfa6d
Adding test for invalid unary data
dalyw 1cfaa2b
Removing type check from unary_helper since type is already checked i…
dalyw bc8a997
Adding back simplified TypeError raising in unary_helper
dalyw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| GasToBoiler_NaturalGas_Flow,GasToCogen_NaturalGas_Flow,ConditionerToCogen_Biogas_Flow,CogenElecToFacility_Electricity_Flow,Constant1 | ||
| 0,1264.064032,6361.096418,919,1 | ||
| 0,1304.840291,6361.096418,863,1 | ||
| 0,1304.840291,6034.886346,882,1 | ||
| 0,1264.064032,5994.110087,945,1 | ||
| 0,1223.287773,6075.662605,914,1 | ||
| 0,1223.287773,6605.753973,912,1 | ||
| 0,1264.064032,5831.00505,867,1 | ||
| 0,1345.61655,6157.215123,926,1 | ||
| 0,1223.287773,5790.228791,890,1 | ||
| 0,1264.064032,6483.425196,911,1 | ||
| 0,1264.064032,6687.306491,901,1 | ||
| 0,1223.287773,6157.215123,926,1 | ||
| 0,1223.287773,6361.096418,916,1 | ||
| 0,1304.840291,6809.635268,925,1 | ||
| 0,1386.392809,6850.411528,890,1 | ||
| 0,1223.287773,6809.635268,935,1 | ||
| 0,1264.064032,6687.306491,913,1 | ||
| 0,1304.840291,6646.530232,905,1 | ||
| 0,1264.064032,6646.530232,927,1 | ||
| 0,1264.064032,6687.306491,921,1 | ||
| 0,1223.287773,6972.740305,903,1 | ||
| 0,1223.287773,6564.977714,886,1 | ||
| 0,1304.840291,5953.333828,911,1 | ||
| 0,1264.064032,6157.215123,896,1 | ||
| 0,1304.840291,5667.900014,879,1 | ||
| 0,1264.064032,5260.137423,915,1 | ||
| 0,1304.840291,5423.242459,915,1 | ||
| 0,1304.840291,5341.689941,882,1 | ||
| 0,1304.840291,5137.808646,930,1 | ||
| 0,1264.064032,4811.598573,889,1 | ||
| 0,1264.064032,5056.256127,890,1 | ||
| 0,1264.064032,5056.256127,897,1 | ||
| 17.488486,1182.511514,5097.032387,867,1 | ||
| 17.488486,1182.511514,5504.794977,878,1 | ||
| 302.9223,897.0777,4730.046055,939,1 | ||
| 343.6985591,856.3014409,4566.941018,853,1 | ||
| 1200,0,4730.046055,862,1 | ||
| 1200,0,5056.256127,911,1 | ||
| 1200,0,5219.361164,816,1 | ||
| 1200,0,5545.571237,879,1 | ||
| 1200,0,5341.689941,905,1 | ||
| 1200,0,5545.571237,961,1 | ||
| 1200,0,5178.584905,919,1 | ||
| 1200,0,5871.781309,903,1 | ||
| 1200,0,5953.333828,944,1 | ||
| 1200,0,5871.781309,909,1 | ||
| 1200,0,5790.228791,927,1 | ||
| 1200,0,5464.018718,910,1 | ||
| 1200,0,5545.571237,903,1 | ||
| 1200,0,5667.900014,917,1 | ||
| 1200,0,5382.4662,886,1 | ||
| 1200,0,5871.781309,907,1 | ||
| 1200,0,5708.676273,897,1 | ||
| 1200,0,5667.900014,966,1 | ||
| 1200,0,5627.123755,893,1 | ||
| 1200,0,5300.913682,893,1 | ||
| 1200,0,5586.347496,953,1 | ||
| 1200,0,5056.256127,924,1 | ||
| 1200,0,5300.913682,908,1 | ||
| 1200,0,5015.479868,935,1 | ||
| 1200,0,5464.018718,976,1 | ||
| 1200,0,5464.018718,923,1 | ||
| 1200,0,5464.018718,895,1 | ||
| 1200,0,5464.018718,910,1 | ||
| 1200,0,5341.689941,953,1 | ||
| 1200,0,4770.822314,595,1 | ||
| 1200,0,5178.584905,946,1 | ||
| 1200,0,5341.689941,926,1 | ||
| 1200,0,5831.00505,959,1 | ||
| 1200,0,5219.361164,916,1 | ||
| 1200,0,5382.4662,887,1 | ||
| 1200,0,5137.808646,840,1 | ||
| 1200,0,5382.4662,863,1 | ||
| 1200,0,4485.3885,881,1 | ||
| 1200,0,5341.689941,863,1 | ||
| 1200,0,5097.032387,799,1 | ||
| 1200,0,4770.822314,819,1 | ||
| 0,1304.840291,5097.032387,840,1 | ||
| 0,1264.064032,4811.598573,877,1 | ||
| 0,1304.840291,4893.151091,918,1 | ||
| 0,1264.064032,5260.137423,939,1 | ||
| 0,1223.287773,5260.137423,956,1 | ||
| 0,1264.064032,4240.730946,933,1 | ||
| 0,1264.064032,4974.703609,889,1 | ||
| 17.488486,1182.511514,5382.4662,921,1 | ||
| 0,1223.287773,4933.92735,938,1 | ||
| 17.488486,1182.511514,4974.703609,896,1 | ||
| 0,1223.287773,4566.941018,852,1 | ||
| 0,1223.287773,4526.164759,925,1 | ||
| 0,1264.064032,4811.598573,914,1 | ||
| 0,1223.287773,4770.822314,892,1 | ||
| 0,1223.287773,4363.059723,903,1 | ||
| 0,1223.287773,4811.598573,909,1 | ||
| 0,1223.287773,5178.584905,950,1 | ||
| 0,1223.287773,4648.493537,926,1 | ||
| 17.488486,1182.511514,5178.584905,919,1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "ElectricityGeneration_LShift1": "ElectricityGeneration_LShift1", | ||
| "Digester3GasFlow": "ConditionerToCogen_Biogas_Flow", | ||
| "Digester2GasFlow": "ConditionerToCogen_Biogas_Flow", | ||
| "BoilerGasPurchases": "GasToBoiler_NaturalGas_Flow", | ||
| "TotalizedFlaredGas": "ConditionerToFlare_Biogas_Flow", | ||
| "NoGasPurchases": "NoGasPurchases", | ||
| "GrossGasProduction": "GrossGasProduction", | ||
| "ElectricityProductionByGasVolume": "ElectricityProductionByGasVolume", | ||
| "ElectricityGeneration_RShift2_List": "ElectricityGeneration_RShift2_List", | ||
| "Digester1GasFlow": "ConditionerToCogen_Biogas_Flow", | ||
| "CogenGasPurchases": "GasToCogen_NaturalGas_Flow", | ||
| "CombinedDigesterGasFlow": "ConditionerToCogen_Biogas_Flow", | ||
| "ElectricityGeneration": "CogenElecToFacility_Electricity_Flow", | ||
| "TankLevel": "FOGTank_FatOilGrease_Level", | ||
| "InfluentFlow": "SewerIntake_UntreatedSewage_Flow", | ||
| "NoGasPurchasesList": "NoGasPurchasesList", | ||
| "ElectricityGeneration_LShift1_List": "ElectricityGeneration_LShift1_List", | ||
| "ElectricityGeneration_RShift2": "ElectricityGeneration_RShift2", | ||
| "TankVolume": "FOGTank_FatOilGrease_Volume", | ||
| "GrossGasProductionList": "GrossGasProductionList", | ||
| "ElectricityGenDelta": "ElectricityGenDelta" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was added because when using tag_to_var_map, relevant_data wouldn't already be a np array. Can think about if there are better ways to handle this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a reasonable solution to me!