BT-Lab .mpt to csv converter with loops.
Extra: The mpt to pandas dataframe can be used as well for other purposes such as plotting using matplotlib or seaborn with python.
-
Place .py or .ipnyb script files in the same directory as the .mpt files you want to convert.
Skip to 2. for .ipnyb
Skip to 3. for .py
-
---> JUPYTER NOTEBOOK file (.ipnyb)
- Run Jupyter Notebook in the directory of the script and open the mpt_to_csv_withloop.ipnyb
- Make sure the .ipnyb file is in the same directory as the .mpt files.
- Run the script through the menu Cell > Run All
- The .csv files can be found in the same directory with *__loopNr.csv filename.
-
---> PYTHON SCRIPT file (.py)
- Run the program through the Terminal (Anaconda Prompt recommended for windows)
- Type in:
python scriptname.py--- example:python mpt_to_csv_withloop.py - The program will run through terminal and the .csv files can be found in the same directory.