Tutorial 50: Mantle_SIR3S_Model
This Example demonstrates how to initialize the SIR 3S Toolkit and instantiate the SIR3S_Model_Dataframes() class.
Toolkit Release
[1]:
#pip install
Imports
SIR 3S Toolkit
Regular Import/Init
[ ]:
SIR3S_SIRGRAF_DIR = r"C:\3S\SIR 3S\SirGraf-90-15-00-24_Quebec-Upd2" #change to local path
[3]:
from sir3stoolkit.core import wrapper
[4]:
wrapper
[4]:
<module 'sir3stoolkit.core.wrapper' from 'C:\\Users\\aUsername\\3S\\sir3stoolkit\\src\\sir3stoolkit\\core\\wrapper.py'>
[5]:
wrapper.Initialize_Toolkit(SIR3S_SIRGRAF_DIR)
Additional Import/Init for Dataframes class
SIR3S_Model_Mantle() is a collector class, bringing together functionalities of multiple sub classes.
We can instantiate the individual classes that are part of the mantle for SIR3S_Model() to get their respective capabilities.
[6]:
from sir3stoolkit.mantle.dataframes import SIR3S_Model_Dataframes
[7]:
s3s = SIR3S_Model_Dataframes()
Initialization complete
[8]:
from sir3stoolkit.mantle.alternative_models import SIR3S_Model_Alternative_Models
[9]:
s3s = SIR3S_Model_Alternative_Models()
Initialization complete
[10]:
from sir3stoolkit.mantle.plotting import SIR3S_Model_Plotting
[11]:
s3s = SIR3S_Model_Plotting()
Initialization complete
[14]:
from sir3stoolkit.mantle.advanced_operations import SIR3S_Model_Advanced_Operations
[15]:
s3s = SIR3S_Model_Advanced_Operations()
Initialization complete
or we can instantiate a collector class with capabilities of all above mentioned classes
[16]:
from sir3stoolkit.mantle.mantle import SIR3S_Model_Mantle
[17]:
s3s = SIR3S_Model_Mantle()
Initialization complete
Next: Tutorial 6: Miscellaneous Tutorial 51: Dataframe Creation