ecopipeline 0.6.4__py3-none-any.whl → 0.6.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ecopipeline/transform/transform.py +5 -2
- {ecopipeline-0.6.4.dist-info → ecopipeline-0.6.5.dist-info}/METADATA +1 -1
- {ecopipeline-0.6.4.dist-info → ecopipeline-0.6.5.dist-info}/RECORD +6 -6
- {ecopipeline-0.6.4.dist-info → ecopipeline-0.6.5.dist-info}/WHEEL +1 -1
- {ecopipeline-0.6.4.dist-info → ecopipeline-0.6.5.dist-info}/LICENSE +0 -0
- {ecopipeline-0.6.4.dist-info → ecopipeline-0.6.5.dist-info}/top_level.txt +0 -0
|
@@ -557,9 +557,12 @@ def cop_method_2(df: pd.DataFrame, cop_tm, cop_primary_column_name) -> pd.DataFr
|
|
|
557
557
|
sum_power_in_df = pd.DataFrame({'PowerIn_Primary': df[sum_primary_cols].sum(axis=1),
|
|
558
558
|
'PowerIn_TM': df[sum_tm_cols].sum(axis=1)
|
|
559
559
|
})
|
|
560
|
-
|
|
561
560
|
df['COP_DHWSys_2'] = (df[cop_primary_column_name] * (sum_power_in_df['PowerIn_Primary']/df['PowerIn_Total'])) + (cop_tm * (sum_power_in_df['PowerIn_TM']/df['PowerIn_Total']))
|
|
562
|
-
|
|
561
|
+
# NULLify incomplete calculations
|
|
562
|
+
sum_power_in_df.loc[df[sum_primary_cols].isna().any(axis=1), "PowerIn_Primary"] = np.nan
|
|
563
|
+
sum_power_in_df.loc[df[sum_tm_cols].isna().any(axis=1), "PowerIn_TM"] = np.nan
|
|
564
|
+
df.loc[df[sum_primary_cols+sum_tm_cols].isna().any(axis=1), "COP_DHWSys_2"] = np.nan
|
|
565
|
+
|
|
563
566
|
return df
|
|
564
567
|
|
|
565
568
|
def convert_on_off_col_to_bool(df: pd.DataFrame, column_names: list) -> pd.DataFrame:
|
|
@@ -6,12 +6,12 @@ ecopipeline/load/load.py,sha256=YfCuzsJYFNZqwR58GeF55-gRI7LpOeaK_DXYHg_0frU,2141
|
|
|
6
6
|
ecopipeline/transform/__init__.py,sha256=DcIJfkRs4OmZzDeEfW_OiOIXNqN6CUl1_lW0SS7-eN8,2280
|
|
7
7
|
ecopipeline/transform/bayview.py,sha256=TP24dnTsUD95X-f6732egPZKjepFLJgDm9ImGr-fppY,17899
|
|
8
8
|
ecopipeline/transform/lbnl.py,sha256=EQ54G4rJXaZ7pwVusKcdK2KBehSdCsNo2ybphtMGs7o,33400
|
|
9
|
-
ecopipeline/transform/transform.py,sha256=
|
|
9
|
+
ecopipeline/transform/transform.py,sha256=sRUgfJrvRh0fET-EDa1WPq_tSqxxgIKEjA73ZIil0PE,43729
|
|
10
10
|
ecopipeline/utils/ConfigManager.py,sha256=t4sfTjGO0g5P50XBQqGVFWaXfAlW1GMDh1DLoBuFGks,9826
|
|
11
11
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
12
12
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
13
|
-
ecopipeline-0.6.
|
|
14
|
-
ecopipeline-0.6.
|
|
15
|
-
ecopipeline-0.6.
|
|
16
|
-
ecopipeline-0.6.
|
|
17
|
-
ecopipeline-0.6.
|
|
13
|
+
ecopipeline-0.6.5.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
+
ecopipeline-0.6.5.dist-info/METADATA,sha256=c7YcK4QIA1gROEcCHeXJiQHcB_ka_95hyi74H0wOLSc,2307
|
|
15
|
+
ecopipeline-0.6.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
16
|
+
ecopipeline-0.6.5.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
17
|
+
ecopipeline-0.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|