Skip to content

Commit

Permalink
Bugfix #2575 main_v11.0 python_convert (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway authored Jun 15, 2023
1 parent 661b83e commit 9fc8ea9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/libcode/vx_data2d_python/data2d_python.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,20 @@ if ( PythonCommand.empty() || PythonCommand != vinfo.req_name() ) {

}

if ( status ) status = process_data_plane(&vinfo, Plane);
if ( status ) {

plane = Plane;

status = process_data_plane(&vinfo, plane);

}

if ( !status ) return ( false );

//
// ok
//

plane = Plane;

//
// store the VarInfo metadata without completely overwritting it
//
Expand All @@ -395,6 +399,7 @@ int MetPythonDataFile::data_plane_array(VarInfo &vinfo, DataPlaneArray &plane_ar
{

bool status = true;
DataPlane plane;

//
// the python command is specified by VarInfo::Name
Expand Down Expand Up @@ -423,7 +428,13 @@ if ( PythonCommand.empty() || PythonCommand != vinfo.req_name() ) {

}

if ( status ) status = process_data_plane(&vinfo, Plane);
if ( status ) {

plane = Plane;

status = process_data_plane(&vinfo, plane);

}

if ( !status ) return ( 0 );

Expand All @@ -433,7 +444,7 @@ if ( !status ) return ( 0 );

plane_array.clear();

plane_array.add(Plane, 0.0, 0.0);
plane_array.add(plane, 0.0, 0.0);

//
// store the VarInfo metadata without completely overwritting it
Expand Down

0 comments on commit 9fc8ea9

Please sign in to comment.