-
Notifications
You must be signed in to change notification settings - Fork 48
Open

Description
Hi,
After I ran my Fortran code and saved the result to a txt, it gave an error when feeding into the python script:
plot_water_height.py:26: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
h = np.array([[float(x) for x in line[1:]] for line in data])
Traceback (most recent call last):
File "plot_water_height.py", line 27, in
x = np.arange(1, h.shape[1]+1)
IndexError: tuple index out of range
I am not sure how to fix the python script. Thanks.
Metadata
Metadata
Assignees
Labels
No labels