Skip to content

Some questions about restart #93

@M2tHane

Description

@M2tHane

I encountered two issues, and the second issue appeared after fixing the first one.

  1. 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)

  2. 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions