I just finished coding a decent model of disease transmission in C #. However, I'm pretty new to .NET and not sure how to do this. Currently, I just double-click on the .exe file, and the model imports the configuration setting from text files, does its job and outputs the results to a text file.
What I would like to do next is write a Python script to do the following:
- Run the simulation N times (N> 1000)
- After each run, rename the output file and save (i.e. ../ output.txt → ./acc/outputN.txt)
- Set, analysis and analysis of outputs
- Print the result in some pure format (possibly in Excel)
Most of my programming experience to date has been in C / C ++ on Linux. I am pretty sure about the last two subjects; however, I have no idea how to proceed for the first two. Here are some specific questions that I would like to consult:
- What is the easiest / best way to run my C # .exe from a python script?
- Does anyone have any tips on the best way to work with the file system in Python on a Windows system?
Thanks!
python filesystems subprocess simulation
Mandelbrot
source share