kW-Labs / nmecr

An implementation of peer-reviewed energy data analysis algorithms for site-specific M&V
MIT License
24 stars 7 forks source link

create_dataframe not working for 15 minute interval #15

Closed dexterluu closed 1 year ago

dexterluu commented 1 year ago

Bug When trying to use the create_dataframe function to merge the load, temperature, and additional_variables dfs together with a 15-minute interval, it errors saying additional_variable_alignment not found.

To Reproduce Steps to reproduce the behavior:

  1. Call function 'create_dataframe' with a load, temperature, and additional_variables dataframe with the covert_to_data_interval option set to "15-min".
  2. See error: Error in align.time.xts(., n = 60 * additional_variable_alignment) : object 'additional_variable_alignment' not found

Expected behavior The expected behavior is to have all 3 dataframes merged.

Desktop (please complete the following information):