Mordicus.Core.IO.ExternalSolvingProcedure module

class Mordicus.Core.IO.ExternalSolvingProcedure.ExternalSolvingProcedure(**kwargs)[source]

Bases: object

This objects says how to call an external solver from Mordicus

solverCfg

dictionary of environment variables useful to the call procedure

Type

dict

solverCallProcedureType

one of (“shell”, “python”), tells what to execute the script with

Type

str

callScript

launching script

Type

str

Execute(script)[source]

Executes as_run as a script

Parameters

script (str) – shell script to execute

Returns

return code

Return type

int

accept(visitor)[source]

Accept visitor

importMordicusData(inputData)[source]

Sets input files from mordicus into launch procedure

Parameters

inputData (dict) – dictionary with str as key (used as key to substitute in template of inputMainFile and input_instruction_file) and str as values (value to substitute with)