#!/usr/bin/env python # coding: utf-8 # # Inspecting Models # We first import the `ams` library and configure the logger level. # In[1]: import ams import datetime # In[2]: print("Last run time:", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")) print(f'ams:{ams.__version__}') # In[3]: ams.config_logger(stream_level=20) # Load an example case. # In[4]: sp = ams.load(ams.get_case('5bus/pjm5bus_uced.xlsx'), setup=True, no_output=True,) # ## List all models and routines # In[5]: print(sp.supported_models()) # Similarly, all supported routiens can be listed. # In[6]: print(sp.supported_routines()) # ## Check routine documentation # To check the documentation for the routine model, use its ``doc()`` method. # In[7]: print(sp.RTED.doc()) # ## Data Check # The ``summary()`` method gives a brief summary of the system and routiens that passed the data check. # In[8]: sp.summary()