mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #4872 from OPM/system-python-pep8-fixes
System python pep8 fixes
This commit is contained in:
@@ -120,8 +120,8 @@ void RicNewPythonScriptFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
QTextStream stream( &file );
|
||||
stream << "# Load ResInsight Processing Server Client Library\nimport rips\n# Connect to ResInsight "
|
||||
"instance\nresInsight = rips.Instance.find()\n# Example code\nprint(\"ResInsight version: \" + "
|
||||
"resInsight.app.versionString())\n";
|
||||
"instance\nresinsight = rips.Instance.find()\n# Example code\nprint(\"ResInsight version: \" + "
|
||||
"resinsight.version_string())\n";
|
||||
}
|
||||
|
||||
scriptColl->readContentFromDisc();
|
||||
|
||||
@@ -170,26 +170,26 @@ if (RESINSIGHT_GRPC_PYTHON_EXECUTABLE)
|
||||
"rips/pdmobject.py"
|
||||
"rips/plot.py"
|
||||
"rips/view.py"
|
||||
"rips/PythonExamples/InstanceExample.py"
|
||||
"rips/PythonExamples/CommandExample.py"
|
||||
"rips/PythonExamples/CaseGridGroup.py"
|
||||
"rips/PythonExamples/CaseInfoStreamingExample.py"
|
||||
"rips/PythonExamples/ExportPlots.py"
|
||||
"rips/PythonExamples/ExportSnapshots.py"
|
||||
"rips/PythonExamples/ErrorHandling.py"
|
||||
"rips/PythonExamples/SoilPorvAsync.py"
|
||||
"rips/PythonExamples/SoilPorvSync.py"
|
||||
"rips/PythonExamples/SelectedCases.py"
|
||||
"rips/PythonExamples/AllCases.py"
|
||||
"rips/PythonExamples/SetGridProperties.py"
|
||||
"rips/PythonExamples/SetCellResult.py"
|
||||
"rips/PythonExamples/SetFlowDiagnosticsResult.py"
|
||||
"rips/PythonExamples/GridInformation.py"
|
||||
"rips/PythonExamples/InputPropTestSync.py"
|
||||
"rips/PythonExamples/InputPropTestAsync.py"
|
||||
"rips/PythonExamples/SoilAverageAsync.py"
|
||||
"rips/PythonExamples/SoilAverageSync.py"
|
||||
"rips/PythonExamples/ViewExample.py"
|
||||
"rips/PythonExamples/instance_example.py"
|
||||
"rips/PythonExamples/command_example.py"
|
||||
"rips/PythonExamples/case_grid_group.py"
|
||||
"rips/PythonExamples/case_info_streaming_example.py"
|
||||
"rips/PythonExamples/export_plots.py"
|
||||
"rips/PythonExamples/export_snapshots.py"
|
||||
"rips/PythonExamples/error_handling.py"
|
||||
"rips/PythonExamples/soil_porv_async.py"
|
||||
"rips/PythonExamples/soil_porv_sync.py"
|
||||
"rips/PythonExamples/selected_cases.py"
|
||||
"rips/PythonExamples/all_cases.py"
|
||||
"rips/PythonExamples/set_grid_properties.py"
|
||||
"rips/PythonExamples/set_cell_Result.py"
|
||||
"rips/PythonExamples/set_flow_diagnostics_result.py"
|
||||
"rips/PythonExamples/grid_information.py"
|
||||
"rips/PythonExamples/input_prop_test_sync.py"
|
||||
"rips/PythonExamples/input_prop_test_async.py"
|
||||
"rips/PythonExamples/soil_average_async.py"
|
||||
"rips/PythonExamples/soil_average_sync.py"
|
||||
"rips/PythonExamples/view_example.py"
|
||||
"rips/tests/test_cases.py"
|
||||
"rips/tests/test_grids.py"
|
||||
"rips/tests/test_properties.py"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import rips
|
||||
|
||||
resinsight = rips.Instance.find()
|
||||
if resinsight is not None:
|
||||
print(resinsight.version_string())
|
||||
print("Is this a console run?", resinsight.is_console())
|
||||
Reference in New Issue
Block a user