From b8ed63838d604444d02a7f265f1fd68cdcdf0ec6 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:43:56 -0600 Subject: [PATCH] delete emissions field in L1 example --- .../bsync_examples/Small-Office-Level-1.md | 42 +++--- .../example-smalloffice-level1.xml | 131 ------------------ .../example-with-emissions.xml | 8 +- 3 files changed, 28 insertions(+), 153 deletions(-) rename docs/notebooks/{ => bsync_examples}/example-with-emissions.xml (99%) diff --git a/docs/notebooks/bsync_examples/Small-Office-Level-1.md b/docs/notebooks/bsync_examples/Small-Office-Level-1.md index cdf8a488..2c7c4fe7 100644 --- a/docs/notebooks/bsync_examples/Small-Office-Level-1.md +++ b/docs/notebooks/bsync_examples/Small-Office-Level-1.md @@ -867,22 +867,22 @@ elec_ru += bsync.AnnualPeakNativeUnits(21.12) # kW as specified above elec_ru += bsync.AnnualPeakConsistentUnits(21.12) # already in kW, same as above elec_ru += bsync.AnnualFuelCost(5304.) # $28 monthly + $0.0725/kwh per https://missoulaelectric.com/member-care/billing-payment/rates/ -# create a resource use for greenhouse gas emissions, units of MtCO2e, all end uses -ghg_linked_ids = bsync.EmissionsLinkedTimeSeriesIDs() -for month in range(1,13): - ghg_linked_ids += bsync.EmissionsLinkedTimeSeriesID(IDref=f"TS-ResourceUse-GreenhouseGasEmissions-{month}") - - -ghg_ru = bsync.ResourceUse( - bsync.Emissions( - bsync.Emission( - bsync.EmissionBoundary("Indirect"), - bsync.EmissionsType("CO2e"), - bsync.GHGEmissions(25000.0), - ghg_linked_ids - ) - ) -) +# # create a resource use for greenhouse gas emissions, units of MtCO2e, all end uses +# ghg_linked_ids = bsync.EmissionsLinkedTimeSeriesIDs() +# for month in range(1,13): +# ghg_linked_ids += bsync.EmissionsLinkedTimeSeriesID(IDref=f"TS-ResourceUse-GreenhouseGasEmissions-{month}") + + +# ghg_ru = bsync.ResourceUse( +# bsync.Emissions( +# bsync.Emission( +# bsync.EmissionBoundary("Indirect"), +# bsync.EmissionsType("CO2e"), +# bsync.GHGEmissions(25000.0), +# ghg_linked_ids +# ) +# ) +# ) # create a resource use for natural gas, units of MMBtu, all end uses # additional connect it up to the utility @@ -903,12 +903,12 @@ ng_ru += bsync.AnnualFuelCost(91.63) # ~ $5.50/1000ft3 NG per https://naturalgas # add these to the ResourceUses parent element all_ru += elec_ru -all_ru += ghg_ru +# all_ru += ghg_ru all_ru += ng_ru # we can still add information to the child elements elec_ru["ID"] = "ResourceUse-Electricity" -ghg_ru["ID"] = "ResourceUse-GreenhouseGasEmissions" +# ghg_ru["ID"] = "ResourceUse-GreenhouseGasEmissions" ng_ru["ID"] = "ResourceUse-Natural-gas" # ResourceUses are child elements of a specific scenario: @@ -985,7 +985,7 @@ full_ts_data = bsync.TimeSeriesData() # usage and peak data monthly_elec = [6792.89, 5841.75, 6025.19, 4985.3, 5184.04, 5358.55, 5755.67, 5981.78, 5401.94, 5225.84, 5672.15, 6291.63] -monthly_ghg = [250.0, 240.0, 260.0, 250.0, 260.0, 230.0, 280.0, 270.0, 260.0, 250.0, 240.0, 250.0] +# monthly_ghg = [250.0, 240.0, 260.0, 250.0, 260.0, 230.0, 280.0, 270.0, 260.0, 250.0, 240.0, 250.0] monthly_ng = [5.7, 4.01, 0.58, 0.4, 0.02, 0, 0, 0, 0, 0.01, 0.36, 6.08] monthly_elec_peak = [15.42, 15.5, 16.25, 16.65, 18.56, 20.01, 20.82, 21.12, 20.42, 20.08, 17.4, 16.3] @@ -1040,7 +1040,7 @@ def create_monthly(values, resource_use_id, start_year, tsrq="Energy", rt="Total return monthly elec_ts = create_monthly(monthly_elec, elec_ru["ID"], 2019) -ghg_ts = create_monthly(monthly_ghg, ghg_ru["ID"], 2019, tsrq="Greenhouse Gas Emissions") +# ghg_ts = create_monthly(monthly_ghg, ghg_ru["ID"], 2019, tsrq="Greenhouse Gas Emissions") ng_ts = create_monthly(monthly_ng, ng_ru["ID"], 2019) elec_peak_ts = create_monthly(monthly_elec_peak, elec_ru["ID"], 2019, "Power", "Peak") @@ -1052,7 +1052,7 @@ def add_to_full(months, full): full += month add_to_full(elec_ts, full_ts_data) -add_to_full(ghg_ts, full_ts_data) +# add_to_full(ghg_ts, full_ts_data) add_to_full(ng_ts, full_ts_data) add_to_full(elec_peak_ts, full_ts_data) add_to_full(elec_cost_ts, full_ts_data) diff --git a/docs/notebooks/bsync_examples/example-smalloffice-level1.xml b/docs/notebooks/bsync_examples/example-smalloffice-level1.xml index e03dafc4..a4eb3d4d 100644 --- a/docs/notebooks/bsync_examples/example-smalloffice-level1.xml +++ b/docs/notebooks/bsync_examples/example-smalloffice-level1.xml @@ -231,29 +231,6 @@ - - - - Indirect - CO2e - 25000.000000 - - - - - - - - - - - - - - - - - Natural gas No irregularities in monthly energy consumption found. @@ -390,114 +367,6 @@ 6291.630000 - - Total - Greenhouse Gas Emissions - 2019-01-01T00:00:00 - 2019-02-01T00:00:00 - Month - 250.000000 - - - - Total - Greenhouse Gas Emissions - 2019-02-01T00:00:00 - 2019-03-01T00:00:00 - Month - 240.000000 - - - - Total - Greenhouse Gas Emissions - 2019-03-01T00:00:00 - 2019-04-01T00:00:00 - Month - 260.000000 - - - - Total - Greenhouse Gas Emissions - 2019-04-01T00:00:00 - 2019-05-01T00:00:00 - Month - 250.000000 - - - - Total - Greenhouse Gas Emissions - 2019-05-01T00:00:00 - 2019-06-01T00:00:00 - Month - 260.000000 - - - - Total - Greenhouse Gas Emissions - 2019-06-01T00:00:00 - 2019-07-01T00:00:00 - Month - 230.000000 - - - - Total - Greenhouse Gas Emissions - 2019-07-01T00:00:00 - 2019-08-01T00:00:00 - Month - 280.000000 - - - - Total - Greenhouse Gas Emissions - 2019-08-01T00:00:00 - 2019-09-01T00:00:00 - Month - 270.000000 - - - - Total - Greenhouse Gas Emissions - 2019-09-01T00:00:00 - 2019-10-01T00:00:00 - Month - 260.000000 - - - - Total - Greenhouse Gas Emissions - 2019-10-01T00:00:00 - 2019-11-01T00:00:00 - Month - 250.000000 - - - - Total - Greenhouse Gas Emissions - 2019-11-01T00:00:00 - 2019-12-01T00:00:00 - Month - 240.000000 - - - - Total - Greenhouse Gas Emissions - 2019-12-01T00:00:00 - 2020-01-01T00:00:00 - Month - 250.000000 - - Total Energy diff --git a/docs/notebooks/example-with-emissions.xml b/docs/notebooks/bsync_examples/example-with-emissions.xml similarity index 99% rename from docs/notebooks/example-with-emissions.xml rename to docs/notebooks/bsync_examples/example-with-emissions.xml index 79d2f36a..47aaa89f 100644 --- a/docs/notebooks/example-with-emissions.xml +++ b/docs/notebooks/bsync_examples/example-with-emissions.xml @@ -1,7 +1,7 @@ @@ -1416,6 +1416,12 @@ + + + + + +