ecopipeline 0.4.12__tar.gz → 0.4.14__tar.gz

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.
Files changed (23) hide show
  1. {ecopipeline-0.4.12/src/ecopipeline.egg-info → ecopipeline-0.4.14}/PKG-INFO +1 -1
  2. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/setup.cfg +1 -1
  3. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/transform/__init__.py +2 -2
  4. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/transform/transform.py +31 -0
  5. {ecopipeline-0.4.12 → ecopipeline-0.4.14/src/ecopipeline.egg-info}/PKG-INFO +1 -1
  6. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/LICENSE +0 -0
  7. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/README.md +0 -0
  8. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/pyproject.toml +0 -0
  9. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/setup.py +0 -0
  10. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/__init__.py +0 -0
  11. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/extract/__init__.py +0 -0
  12. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/extract/extract.py +0 -0
  13. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/load/__init__.py +0 -0
  14. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/load/load.py +0 -0
  15. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/transform/bayview.py +0 -0
  16. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/transform/lbnl.py +0 -0
  17. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/utils/ConfigManager.py +0 -0
  18. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/utils/__init__.py +0 -0
  19. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline/utils/unit_convert.py +0 -0
  20. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline.egg-info/SOURCES.txt +0 -0
  21. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline.egg-info/dependency_links.txt +0 -0
  22. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline.egg-info/requires.txt +0 -0
  23. {ecopipeline-0.4.12 → ecopipeline-0.4.14}/src/ecopipeline.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ecopipeline
3
- Version: 0.4.12
3
+ Version: 0.4.14
4
4
  Summary: Contains functions for use in Ecotope Datapipelines
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ecopipeline
3
- version = 0.4.12
3
+ version = 0.4.14
4
4
  authors = ["Carlos Bello, <bellocarlos@seattleu.edu>, Emil Fahrig <fahrigemil@seattleu.edu>, Casey Mang <cmang@seattleu.edu>, Julian Harris <harrisjulian@seattleu.edu>, Roger Tram <rtram@seattleu.edu>, Nolan Price <nolan@ecotope.com>"]
5
5
  description = Contains functions for use in Ecotope Datapipelines
6
6
  long_description = file: README.md
@@ -1,4 +1,4 @@
1
- from .transform import rename_sensors, avg_duplicate_times, remove_outliers, ffill_missing, nullify_erroneous, sensor_adjustment, round_time, aggregate_df, join_to_hourly, concat_last_row, join_to_daily, cop_method_1, cop_method_2, create_summary_tables, remove_partial_days,convert_c_to_f,convert_l_to_g, convert_on_off_col_to_bool, flag_dhw_outage,generate_event_log_df,convert_time_zone, shift_accumulative_columns
1
+ from .transform import rename_sensors, avg_duplicate_times, remove_outliers, ffill_missing, nullify_erroneous, sensor_adjustment, round_time, aggregate_df, join_to_hourly, concat_last_row, join_to_daily, cop_method_1, cop_method_2, create_summary_tables, remove_partial_days,convert_c_to_f,convert_l_to_g, convert_on_off_col_to_bool, flag_dhw_outage,generate_event_log_df,convert_time_zone, shift_accumulative_columns,heat_output_calc
2
2
  from .lbnl import nclarity_filter_new, site_specific, condensate_calculations, gas_valve_diff, gather_outdoor_conditions, aqsuite_prep_time, nclarity_csv_to_df, _add_date, add_local_time, aqsuite_filter_new, get_refrig_charge, elev_correction, change_ID_to_HVAC, get_hvac_state, get_cop_values, get_cfm_values, replace_humidity, create_fan_curves, lbnl_temperature_conversions, lbnl_pressure_conversions, lbnl_sat_calculations, get_site_cfm_info, get_site_info, merge_indexlike_rows
3
3
  from .bayview import calculate_cop_values, aggregate_values, get_energy_by_min, verify_power_energy, get_temp_zones120, get_storage_gals120
4
4
  __all__ = ["rename_sensors", "avg_duplicate_times", "remove_outliers", "ffill_missing", "nullify_erroneous", "sensor_adjustment", "round_time", "aggregate_df", "join_to_hourly", "concat_last_row", "join_to_daily",
@@ -6,4 +6,4 @@ __all__ = ["rename_sensors", "avg_duplicate_times", "remove_outliers", "ffill_mi
6
6
  "nclarity_csv_to_df", "_add_date", "add_local_time", "aqsuite_filter_new", "get_refrig_charge", "elev_correction", "change_ID_to_HVAC", "get_hvac_state", "get_cop_values", "get_cfm_values", "replace_humidity",
7
7
  "create_fan_curves", "lbnl_temperature_conversions", "lbnl_pressure_conversions", "lbnl_sat_calculations", "get_site_cfm_info", "get_site_info", "merge_indexlike_rows", "calculate_cop_values", "aggregate_values",
8
8
  "get_energy_by_min", "verify_power_energy", "get_temp_zones120", "get_storage_gals120","convert_c_to_f","convert_l_to_g", "convert_on_off_col_to_bool", "flag_dhw_outage","generate_event_log_df","convert_time_zone",
9
- "shift_accumulative_columns"]
9
+ "shift_accumulative_columns","heat_output_calc"]
@@ -271,6 +271,7 @@ def ffill_missing(original_df: pd.DataFrame, config : ConfigManager, previous_fi
271
271
  Pandas dataframe that has been forward filled to the specifications detailed in the vars_filename csv
272
272
  """
273
273
  df = original_df.copy()
274
+ df = df.sort_index()
274
275
  vars_filename = config.get_var_names_path()
275
276
  try:
276
277
  # ffill dataframe holds ffill length and changepoint bool
@@ -345,6 +346,36 @@ def nullify_erroneous(original_df: pd.DataFrame, config : ConfigManager) -> pd.D
345
346
 
346
347
  return df
347
348
 
349
+ def heat_output_calc(df: pd.DataFrame, flow_var : str, hot_temp : str, cold_temp : str, heat_out_col_name : str, return_as_kw : bool = True):
350
+ """
351
+ Function will take a flow varriable and two temperature inputs to calculate heat output
352
+
353
+ Parameters
354
+ ----------
355
+ df: pd.DataFrame
356
+ Pandas dataframe with minute-to-minute data
357
+ flow_var : str
358
+ The column name of the flow varriable for the calculation. Units of the column should be gal/min
359
+ hot_temp : str
360
+ The column name of the hot temperature varriable for the calculation. Units of the column should be degrees F
361
+ cold_temp : str
362
+ The column name of the cold temperature varriable for the calculation. Units of the column should be degrees F
363
+ heat_out_col_name : str
364
+ The new column name for the heat output calculated from the varriables
365
+ return_as_kw : bool
366
+ Set to true for new heat out column to have kW units. Set to false to return column as BTU/hr
367
+
368
+ Returns
369
+ -------
370
+ pd.DataFrame:
371
+ Pandas dataframe with new heat output column of specified name.
372
+ """
373
+ df[heat_out_col_name] = 500 * df[flow_var] * (df[hot_temp] - df[cold_temp]) #BTU/hr
374
+ df[heat_out_col_name] = np.where(df[heat_out_col_name] > 0, df[heat_out_col_name], 0)
375
+ if return_as_kw:
376
+ df[heat_out_col_name] = df[heat_out_col_name]/3412 # convert to kW
377
+ return df
378
+
348
379
  #TODO investigate if this can be removed
349
380
  def sensor_adjustment(df: pd.DataFrame, config : ConfigManager) -> pd.DataFrame:
350
381
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ecopipeline
3
- Version: 0.4.12
3
+ Version: 0.4.14
4
4
  Summary: Contains functions for use in Ecotope Datapipelines
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: GNU General Public License (GPL)
File without changes
File without changes
File without changes