Skip to content

Error creating plots in plotpfl #1

@glwagner

Description

@glwagner

When attempting to execute /cases/OCSPapa/case_run, plotpfl throws the error:

Traceback (most recent call last):
  File "/Users/gregorywagner/Projects/gotm/gotmwork/tools/plotpfl", line 275, in <module>
    main()
  File "/Users/gregorywagner/Projects/gotm/gotmwork/tools/plotpfl", line 112, in main
    im = plt.contourf(dttime, z, np.transpose(mdl), levels, extend='both')
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2818, in contourf
    ret = ax.contourf(*args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py", line 1717, in inner
    return func(ax, *args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 5827, in contourf
    contours = mcontour.QuadContourSet(self, *args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/contour.py", line 853, in __init__
    kwargs = self._process_args(*args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/contour.py", line 1447, in _process_args
    x, y, z = self._contour_args(args, kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/contour.py", line 1528, in _contour_args
    x, y, z = self._check_xyz(args[:3], kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/contour.py", line 1557, in _check_xyz
    x = np.asarray(x, dtype=np.float64)
  File "/anaconda3/lib/python3.6/site-packages/numpy/core/numeric.py", line 492, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: float() argument must be a string or a number, not 'real_datetime'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions