.. _files_generated_by_msim_script:

Files Generated by MSim Script
==============================
    
This section discusses how the :ref:`msim_script` saves files to disk, if you want to see an example of a :ref:`msim_script` generated by a :ref:`fit_script` then see :ref:`builtin_fit_example`.
    
Outputs from an msim script called 'fit_example1_msim.pyml' are:-
    
.. code-block:: console
    
    fit_example1_msim.pyml_output/
        _temp
        msol
        fit_example1_vpc.pyml
        
The '_temp' folder contains the temporary functions generated by |popy| and the 'msol' folder contains the new simulated populations. There is one \.csv file per simulated population, that all have the same number of rows as the original 'fit_example1_data.csv'.

The :ref:`msim_script` also outputs the 'fit_example1_vpc.pyml' :ref:`vpc_script` and runs it automatically after finishing the multi population simulation. The vpc_script is responsible for loading in the data from the 'msol' folder and creating a vpc graph.

The output of the 'fit_example1_vpc.pyml' script is here:-

.. code-block:: console

    fit_example1_msim.pyml_output/
        DV_CENTRAL_sim,DV_CENTRAL_wrt_TIME_SINCE_LAST_DOSE_comb_quant_sim_vpc/
            000000.svg

The parameters of the vpc graph are used in the folder name, so it ends up being quite long.   


