You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The _visual class appears to be using outdated syntax when importing and calling functions from pyearth. Specifically, the map_vector_polygon_data function requires two leading positional arguments, but the implementation in the _visual class provides only one positional argument during function calls (sFilename_in).
I assume this is left over syntax from the embedded version of pyearth which is now an external dependency. I have the latest pyearth installed in my environment, so _visual is importing from that.
Note: the trace says sFilename_in is missing, but that's because the call from _visual is passing sFilename_in and the latest version of map_vector_polygon_data interprets this as the leading iFiletype_in argument.
I ran into this when patching up run_simulation_mpas.py, where the final mesh and flowline are plotted near the end.
We should probably make an effort to align pyflowline with the latest pyearth library syntax in general.
The text was updated successfully, but these errors were encountered:
Description:
The
_visual
class appears to be using outdated syntax when importing and calling functions frompyearth
. Specifically, themap_vector_polygon_data
function requires two leading positional arguments, but the implementation in the_visual
class provides only one positional argument during function calls (sFilename_in
).I assume this is left over syntax from the embedded version of
pyearth
which is now an external dependency. I have the latestpyearth
installed in my environment, so_visual
is importing from that.Error Encountered:
TypeError: map_vector_polygon_data() missing 1 required positional argument: 'sFilename_in'
Note: the trace says
sFilename_in
is missing, but that's because the call from_visual
is passingsFilename_in
and the latest version ofmap_vector_polygon_data
interprets this as the leadingiFiletype_in
argument.I ran into this when patching up
run_simulation_mpas.py
, where the final mesh and flowline are plotted near the end.We should probably make an effort to align
pyflowline
with the latestpyearth
library syntax in general.The text was updated successfully, but these errors were encountered: