I encountered two issues, and the second issue appeared after fixing the first one.
-
File "H:\cosipy-new\cosipy\cpkernel\io.py", line 140, in create_data_file timestamp = start_timestamp.strftime("%Y-%m-%dT%H-%M")
AttributeError: 'numpy.datetime64' object has no attribute 'strftime'
The issue was resolved when I modified the code in io.py lines 134-135 as follows.
start_timestamp = self.get_datetime(time_start, use_np=False)
end_timestamp = self.get_datetime(time_end, use_np=False)
-
File "H:\cosipy-new\cosipy\cpkernel\init.py", line 132, in load_snowpack\n new_snow_height = np.float64(GRID_RESTART.new_snow_height.values) AttributeError: 'Dataset' object has no attribute 'new_snow_height'
I encountered two issues, and the second issue appeared after fixing the first one.
File "H:\cosipy-new\cosipy\cpkernel\io.py", line 140, in create_data_file timestamp = start_timestamp.strftime("%Y-%m-%dT%H-%M")
AttributeError: 'numpy.datetime64' object has no attribute 'strftime'
The issue was resolved when I modified the code in io.py lines 134-135 as follows.
start_timestamp = self.get_datetime(time_start, use_np=False)end_timestamp = self.get_datetime(time_end, use_np=False)File "H:\cosipy-new\cosipy\cpkernel\init.py", line 132, in load_snowpack\n new_snow_height = np.float64(GRID_RESTART.new_snow_height.values) AttributeError: 'Dataset' object has no attribute 'new_snow_height'