Tutorial 50: Mantle_SIR3S_Model
This Example demonstrates how to initialize the SIR 3S Toolkit and instantiate the SIR3S_Model_Dataframes() class.
Toolkit Release
[17]:
#pip install
Imports
SIR 3S Toolkit
Regular Import/Init
[18]:
SIR3S_SIRGRAF_DIR = r"C:\3S\SIR 3S\SirGraf-90-15-00-20x64_Quebec-Upd1" #change to local path
[19]:
from sir3stoolkit.core import wrapper
[20]:
wrapper
[20]:
<module 'sir3stoolkit.core.wrapper' from 'C:\\Users\\aUsername\\3S\\sir3stoolkit\\src\\sir3stoolkit\\core\\wrapper.py'>
[21]:
wrapper.Initialize_Toolkit(SIR3S_SIRGRAF_DIR)
Additional Import/Init for Dataframes class
We can instantiate the individual classes that are part of the mantle for SIR3S_Model() to get their respective capabilities.
[22]:
from sir3stoolkit.mantle.dataframes import SIR3S_Model_Dataframes
[23]:
s3s = SIR3S_Model_Dataframes()
Initialization complete
[24]:
from sir3stoolkit.mantle.alternative_models import SIR3S_Model_Alternative_Models
[25]:
s3s = SIR3S_Model_Alternative_Models()
Initialization complete
[26]:
from sir3stoolkit.mantle.plotting import SIR3S_Model_Plotting
[27]:
s3s = SIR3S_Model_Plotting()
Initialization complete
or we can instantiate a collector class with capabilities of all above mentioned classes
[29]:
from sir3stoolkit.mantle.mantle import SIR3S_Model_Mantle
[30]:
s3s = SIR3S_Model_Mantle()
Initialization complete
Next: Tutorial 6: Miscellaneous Tutorial 51: Dataframe Creation