Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • tests
    • None

    Description

      ======================================================================
      ERROR: test_daily_to_annual_rebin (ocw.tests.test_dataset_processor.TestTemporalRebin)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 85, in test_daily_to_annual_rebin
          annual_dataset = dp.temporal_rebin(self.two_years_daily_dataset, datetime.timedelta(days=366))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      
      ======================================================================
      ERROR: This test takes a really long time to run.  TODO: Figure out where the performance drag is
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 78, in test_daily_to_monthly_rebin
          monthly_dataset = dp.temporal_rebin(self.two_years_daily_dataset, datetime.timedelta(days=31))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      
      ======================================================================
      ERROR: test_monthly_to_annual_rebin (ocw.tests.test_dataset_processor.TestTemporalRebin)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 68, in test_monthly_to_annual_rebin
          annual_dataset = dp.temporal_rebin(self.ten_year_monthly_dataset, datetime.timedelta(days=365))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      
      ======================================================================
      ERROR: test_monthly_to_full_rebin (ocw.tests.test_dataset_processor.TestTemporalRebin)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 72, in test_monthly_to_full_rebin
          full_dataset = dp.temporal_rebin(self.ten_year_monthly_dataset, datetime.timedelta(days=3650))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      
      ======================================================================
      ERROR: This will take a monthly dataset and ask for a monthly rebin of 28 days.  The resulting
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 94, in test_non_rebin
          monthly_dataset = dp.temporal_rebin(self.ten_year_monthly_dataset, datetime.timedelta(days=28))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      
      ======================================================================
      ERROR: test_variable_propagation (ocw.tests.test_dataset_processor.TestTemporalRebin)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/local/climate/ocw/tests/test_dataset_processor.py", line 100, in test_variable_propagation
          datetime.timedelta(days=365))
        File "/usr/local/climate/ocw/dataset_processor.py", line 122, in temporal_rebin
          binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution)
      ValueError: too many values to unpack
      -------------------- >> begin captured stdout << ---------------------
      Error: unknown unit type selected for time averaging: EXIT
      
      --------------------- >> end captured stdout << ----------------------
      

      Attachments

        Activity

          People

            jarifibrahim Ibrahim Jarif
            lewismc Lewis John McGibbney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: