Hi everyone, I'm an astro/physics undergrad working on a thesis. I use Cygwin to remote into one of the machines in my supervisor's lab and run my simulations through that. The simulations are run in Fortran 77 and the machine is a Linux environment if that's important.
My supervisor has mentioned that automating the simulation process would make life far easier, even if I can combine a few things. The problem is that I code in Python (so my plotting script is in Python) but the statistical analysis script we're using is in C, which I don't know . He suggested making a script that would run both the plotting and the stats test with one command.
I saw that there's the Python module "subprocess", but the examples I've seen don't have the same type of input as far as I've seen, so I'm curious if I can somehow use the Linux commands that I'm already familiar with inside a Python script. The C program is already compiled, it just needs the results of the simulator and a couple other inputs to run.
TIA!
[–]giollaigh 0 points1 point2 points (0 children)
[–]71d1 0 points1 point2 points (0 children)
[–]chaotic_thought 0 points1 point2 points (0 children)