Deliver geospatial models direct to decision makers with SyncroSim › Forums › ST-Sim & State-and-Transition Simulation Models › Bug Using Linux Tools? › Reply To: Bug Using Linux Tools?
August 1, 2016 at 2:13 pm
#3982
Taylor Mutch
Participant
Hi Alex,
Thanks for the links, that does make more sense to use subprocess.
When I use subprocess like this:
import subprocess32 as sub_proc
...
st_model_output_sid = str(sub_proc.call(st_exe + " " + st_run_model_command, shell=True))
It returns a scenario id 256 less than the id corresponding to the results id. I.e. If the scenario id is 296, the above returns 40. So that answers the divide by 256, but not the subtraction of 256…
Cheers,
Taylor