sphinx.addnodesdocument)}( rawsourcechildren]docutils.nodessection)}(hhh](h title)}(h util moduleh]h Text util module}(parenth _documenthsourceNlineNuba attributes}(ids]classes]names]dupnames]backrefs]utagnamehhh hhhOC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\docs\core\util.rsthKubhindex)}(hhh]h}(h!]h#]h%]h']h)]entries](pair module; util module-utilhNtauh+h-hh hhhNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](single'get_user_json_config() (in module util)util.get_user_json_confighNtauh+h-hh hhhNhNubhdesc)}(hhh](hdesc_signature)}(hget_user_json_config(filename)h](h desc_addname)}(hutil.h]hutil.}(hhZhhhNhNubah}(h!]h#]( sig-prename descclassnameeh%]h']h)] xml:spacepreserveuh+hXhhThhh|C:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_user_json_confighKubh desc_name)}(hget_user_json_configh]hget_user_json_config}(hhohhhNhNubah}(h!]h#](sig-namedescnameeh%]h']h)]hjhkuh+hmhhThhhhlhKubhdesc_parameterlist)}(hfilenameh]hdesc_parameter)}(hfilenameh]h desc_sig_name)}(hfilenameh]hfilename}(hhhhhNhNubah}(h!]h#]nah%]h']h)]uh+hhhubah}(h!]h#]h%]h']h)]hjhkuh+hhhubah}(h!]h#]h%]h']h)]hjhkuh+hhhThhhhlhKubeh}(h!]hKah#](sig sig-objecteh%]h']h)]moduleutilclasshfullnamehq _toc_partshhq _toc_nameget_user_json_config()uh+hRhhlhKhhOhhubh desc_content)}(hhh](h paragraph)}(h)Read a json file and return as dictionaryh]h)Read a json file and return as dictionary}(hhhhhNhNubah}(h!]h#]h%]h']h)]uh+hh|C:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_user_json_confighKhhhhubh field_list)}(hhh](h field)}(hhh](h field_name)}(h Return typeh]h Return type}(hhhhhNhNubah}(h!]h#]h%]h']h)]uh+hhhhhlhKubh field_body)}(hhh]h)}(hdicth]h pending_xref)}(h:py:class:`dict`h]h literal)}(hhh]hdict}(hhhhhNhNubah}(h!]h#](xrefpypy-classeh%]h']h)]uh+hhhubah}(h!]h#]h%]h']h)]refdoc core/util refdomainjreftypeclass refexplicitrefwarn py:modulehpy:classN reftargetdictuh+hhhhKhhhhubah}(h!]h#]h%]h']h)]uh+hhhubah}(h!]h#]h%]h']h)]uh+hhhubeh}(h!]h#]h%]h']h)]uh+hhhubh)}(hhh](h)}(h Parametersh]h Parameters}(hj/hhhNhNubah}(h!]h#]h%]h']h)]uh+hhj,hhlhKubh)}(hhh]h)}(hfilename (str) -- h](hliteral_strong)}(hfilenameh]hfilename}(hjFhhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj@ubh (}(hj@hhhNhNubh)}(hhh]hliteral_emphasis)}(hstrh]hstr}(hj]hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjXubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypeh reftargetj_ refspecificjhjNuh+hhj@ubh)}(hj@hhhNhNubh – }(hj@hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj=ubah}(h!]h#]h%]h']h)]uh+hhj,ubeh}(h!]h#]h%]h']h)]uh+hhhubh)}(hhh](h)}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhhlhKubh)}(hhh]h)}(hdicth]h)}(hhh]hdict}(hjhhhNhNubah}(h!]h#]h%]h']h)] refdomainjr refexplicitreftypeh reftargetdictjvjhjNuh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhhubeh}(h!]h#]h%]h']h)]uh+hhhhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhhOhhhhlhKubeh}(h!]h#](jrfunctioneh%]h']h)]domainjrobjtypejdesctypejnoindex noindexentrynocontentsentryuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hI get_user_data() (in module util)util.get_user_datahNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(hget_user_data()h](hY)}(hutil.h]hutil.}(hjhhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhjhhhuC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_user_datahKubhn)}(h get_user_datah]h get_user_data}(hj hhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhjhhhj hKubh)}(h()h]h}(h!]h#]h%]h']h)]hjhkuh+hhjhhhj hKubeh}(h!]jah#](hheh%]h']h)]hutilhhhj hj(j hget_user_data()uh+hRhj hKhjhhubh)}(hhh](h)}(hGet the user metadata.h]hGet the user metadata.}(hj.hhhNhNubah}(h!]h#]h%]h']h)]uh+hhuC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_user_datahKhj+hhubh)}(hhh](h)}(hhh](h)}(h Return typeh]h Return type}(hjChhhNhNubah}(h!]h#]h%]h']h)]uh+hhj@hj hKubh)}(hhh]h)}(hdicth]h)}(h:py:class:`dict`h]h)}(hjZh]hdict}(hj\hhhNhNubah}(h!]h#](jpypy-classeh%]h']h)]uh+hhjXubah}(h!]h#]h%]h']h)]refdocj refdomainjfreftypeclass refexplicitrefwarnjj(jNjdictuh+hhj<hKhjThhubah}(h!]h#]h%]h']h)]uh+hhjQubah}(h!]h#]h%]h']h)]uh+hhj@ubeh}(h!]h#]h%]h']h)]uh+hhj=ubh)}(hhh](h)}(hReturnsh]hReturns}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj hKubh)}(hhh]h)}(huserh]h strong)}(h**user**h]huser}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhj=ubh)}(hhh](h)}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj hKubh)}(hhh]h)}(hdicth]h)}(hhh]hdict}(hjhhhNhNubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypeh reftargetdictjvjj(jNuh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhj=ubeh}(h!]h#]h%]h']h)]uh+hhj+hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjhhhj hKubeh}(h!]h#](jfunctioneh%]h']h)]jjjjjjjjjuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hIsqs_wait() (in module util) util.sqs_waithNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(hsqs_wait(*args, **kwargs)h](hY)}(hutil.h]hutil.}(hj)hhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhj%hhhpC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.sqs_waithKubhn)}(hsqs_waith]hsqs_wait}(hj8hhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhj%hhhj7hKubh)}(h*args, **kwargsh](h)}(h*argsh](hdesc_sig_operator)}(h*h]h*}(hjPhhhNhNubah}(h!]h#]oah%]h']h)]uh+jNhjJubh)}(hargsh]hargs}(hj_hhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjJubeh}(h!]h#]h%]h']h)]hjhkuh+hhjFubh)}(h**kwargsh](jO)}(h**h]h**}(hjwhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjsubh)}(hkwargsh]hkwargs}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjsubeh}(h!]h#]h%]h']h)]hjhkuh+hhjFubeh}(h!]h#]h%]h']h)]hjhkuh+hhj%hhhj7hKubeh}(h!]j ah#](hheh%]h']h)]hutilhhhj:hjj:h sqs_wait()uh+hRhj7hKhj"hhubh)}(hhh](h)}(h Deprecated.h]h Deprecated.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhpC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.sqs_waithKhjhhubh)}(hhh]h)}(hhh](h)}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj7hKubh)}(hhh]h)}(hstrh]h)}(h:py:class:`str`h]h)}(hjh]hstr}(hjhhhNhNubah}(h!]h#](jpypy-classeh%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]refdocj refdomainjreftypeclass refexplicitrefwarnjjjNjstruh+hhjhKhjhhubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj"hhhj7hKubeh}(h!]h#](pyfunctioneh%]h']h)]jjjjjjjjjuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hI'get_calibration_data() (in module util)util.get_calibration_datahNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(h1get_calibration_data(folder_name, s3_bucket_name)h](hY)}(hutil.h]hutil.}(hj0hhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhj,hhh|C:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_calibration_datahKubhn)}(hget_calibration_datah]hget_calibration_data}(hj?hhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhj,hhhj>hKubh)}(hfolder_name, s3_bucket_nameh](h)}(h folder_nameh]h)}(h folder_nameh]h folder_name}(hjUhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjQubah}(h!]h#]h%]h']h)]hjhkuh+hhjMubh)}(hs3_bucket_nameh]h)}(hs3_bucket_nameh]hs3_bucket_name}(hjmhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjiubah}(h!]h#]h%]h']h)]hjhkuh+hhjMubeh}(h!]h#]h%]h']h)]hjhkuh+hhj,hhhj>hKubeh}(h!]j'ah#](hheh%]h']h)]hutilhhhjAhjjAhget_calibration_data()uh+hRhj>hKhj)hhubh)}(hhh](h)}(hCDownload to local file system all data in a folder of an s3 bucket.h]hCDownload to local file system all data in a folder of an s3 bucket.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hh|C:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.get_calibration_datahKhjhhubh)}(hhh](h)}(hhh](h)}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj>hKubh)}(hhh]h)}(h list[str]h](h)}(h:py:class:`list`h]h)}(hjh]hlist}(hjhhhNhNubah}(h!]h#](jpypy-classeh%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]refdocj refdomainjreftypeclass refexplicitrefwarnjjjNjlistuh+hhjhKhjhhubh[}(hjhhhNhNubh)}(h:py:class:`str`h]h)}(hjh]hstr}(hjhhhNhNubah}(h!]h#](jpypy-classeh%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]refdocj refdomainjreftypeclass refexplicitrefwarnjjjNjstruh+hhjhKhjhhubh]}(hjhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjubh)}(hhh](h)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj>hKubh)}(hhh]h bullet_list)}(hhh](h list_item)}(hhh]h)}(h&folder_name (str) -- The s3 bucket keyh](jE)}(h folder_nameh]h folder_name}(hj9hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj5ubh (}(hj5hhhNhNubh)}(hhh]j\)}(hstrh]hstr}(hjNhhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjKubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypeh reftargetjPjvjjjNuh+hhj5ubh)}(hj5hhhNhNubh – }(hj5hhhNhNubhThe s3 bucket key}(hj5hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj2ubah}(h!]h#]h%]h']h)]uh+j0hj-ubj1)}(hhh]h)}(hs3_bucket_name (str) -- h](jE)}(hs3_bucket_nameh]hs3_bucket_name}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jDhjubh (}(hjhhhNhNubh)}(hhh]j\)}(hstrh]hstr}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjubah}(h!]h#]h%]h']h)] refdomainjc refexplicitreftypeh reftargetjjvjjjNuh+hhjubh)}(hjhhhNhNubh – }(hjhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+j0hj-ubeh}(h!]h#]h%]h']h)]uh+j+hj(ubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjubh)}(hhh](h)}(hReturnsh]hReturns}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj>hKubh)}(hhh]h)}(h!List of all the files downloaded.h]h!List of all the files downloaded.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjubh)}(hhh](h)}(h Return typeh]h Return type}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj>hKubh)}(hhh]h)}(h list[str]h](h)}(hhh]hlist}(hjhhhNhNubah}(h!]h#]h%]h']h)] refdomainjc refexplicitreftypeh reftargetlistjvjjjNuh+hhjubh[}(hjhhhNhNubh)}(hhh]hstr}(hj5hhhNhNubah}(h!]h#]h%]h']h)] refdomainjc refexplicitreftypeh reftargetstrjvjjjNuh+hhjubh]}(hjhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhjhhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj)hhhj>hKubeh}(h!]h#](jcfunctioneh%]h']h)]jjcjjljjljjjuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hI3setup_uncertainty_propagation_db() (in module util)%util.setup_uncertainty_propagation_dbhNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(h_setup_uncertainty_propagation_db(config, delete_existing_table=False, delete_existing_db=False)h](hY)}(hutil.h]hutil.}(hjhhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhjhhhC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.setup_uncertainty_propagation_dbhKubhn)}(h setup_uncertainty_propagation_dbh]h setup_uncertainty_propagation_db}(hjhhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhjhhhjhKubh)}(h=config, delete_existing_table=False, delete_existing_db=Falseh](h)}(hconfigh]h)}(hconfigh]hconfig}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]hjhkuh+hhjubh)}(hdelete_existing_table=Falseh](h)}(hdelete_existing_tableh]hdelete_existing_table}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubjO)}(h=h]h=}(hjhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjubh inline)}(hFalseh]hFalse}(hjhhhNhNubah}(h!]h#] default_valueah%]h']h)]support_smartquotesuh+jhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjubh)}(hdelete_existing_db=Falseh](h)}(hdelete_existing_dbh]hdelete_existing_db}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubjO)}(h=h]h=}(hjhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjubj)}(hFalseh]hFalse}(hjhhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjhhhjhKubeh}(h!]j|ah#](hheh%]h']h)]hutilhhhjhj7jh"setup_uncertainty_propagation_db()uh+hRhjhKhj~hhubh)}(hhh](h)}(hqSetup an SQL database with several tables needed to store the results of the uncertainty progation from twinstat.h]hqSetup an SQL database with several tables needed to store the results of the uncertainty progation from twinstat.}(hj=hhhNhNubah}(h!]h#]h%]h']h)]uh+hhC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.setup_uncertainty_propagation_dbhKhj:hhubh)}(hhh]h)}(hhh](h)}(h Return typeh]h Return type}(hjRhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjOhjhKubh)}(hhh]h)}(hNoneh]h)}(h:py:obj:`None`h]h)}(hjih]hNone}(hjkhhhNhNubah}(h!]h#](jpypy-objeh%]h']h)]uh+hhjgubah}(h!]h#]h%]h']h)]refdocj refdomainjureftypeobj refexplicitrefwarnjj7jNjNoneuh+hhjKhKhjchhubah}(h!]h#]h%]h']h)]uh+hhj`ubah}(h!]h#]h%]h']h)]uh+hhjOubeh}(h!]h#]h%]h']h)]uh+hhjLubah}(h!]h#]h%]h']h)]uh+hhj:hhhNhNubh definition_list)}(hhh]h definition_list_item)}(hThe schema will use the following column names: batch int eval_id int The config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype. h](h term)}(h/The schema will use the following column names:h]h/The schema will use the following column names:}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhK hjubh definition)}(hhh](h)}(hbatch int eval_id inth]hbatch int eval_id int}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhKhjubh)}(hThe config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype.h]hThe config input dict will be reviewed and all keys that contain the words ‘input’ or ‘result’ will be used as column names with the double datatype.}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhK hjubeh}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhjKhK hjubah}(h!]h#]h%]h']h)]uh+jhj:hhhjKhKubh)}(hbRequires proper IAM role that enables modification of the SQL databased in the 'mysql_db_endpoint'h]hfRequires proper IAM role that enables modification of the SQL databased in the ‘mysql_db_endpoint’}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhKhj:hhubh)}(hTables are produced:h]hTables are produced:}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhKhj:hhubh block_quote)}(hXExample: .. code-block:: python config = { 'input_0': "sprocket_1", 'input_1': "sprocket_2", 'output_0': "flowrate_12" 'output_1': "flowrate_14" } 'uncertainty_propagation_samples', The config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype. Example Schema: .. code-block:: python [ 'batch int', 'eval_id int', 'sprocket_1 double', 'sprocket_2 double', 'flowrate_12 double' 'flowrate_14 double' ] 'uncertainty_propagation_pdf', Example Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_pdf double', 'flowrate_14_xtest double', 'flowrate_14_pdf double' ] 'uncertainty_propagation_cdf', Example Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_cdf double', 'flowrate_14_xtest double', 'flowrate_14_cdf double' ] 'uncertainty_propagation_sensitivity' Example Schema: .. code-block:: python [ 'output_variable tinytext', 'sprocket_1 double', 'sprocket_2 double', ] h](j)}(hhh]j)}(hExample: .. code-block:: python config = { 'input_0': "sprocket_1", 'input_1': "sprocket_2", 'output_0': "flowrate_12" 'output_1': "flowrate_14" } h](j)}(hExample:h]hExample:}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhKhjubj)}(hhh]h literal_block)}(hconfig = { 'input_0': "sprocket_1", 'input_1': "sprocket_2", 'output_0': "flowrate_12" 'output_1': "flowrate_14" }h]hconfig = { 'input_0': "sprocket_1", 'input_1': "sprocket_2", 'output_0': "flowrate_12" 'output_1': "flowrate_14" }}hj)sbah}(h!]h#]h%]h']h)]hjhkforcelanguagepythonhighlight_args}uh+j'hjKhKhj$ubah}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhjKhKhjubah}(h!]h#]h%]h']h)]uh+jhj hKubh)}(h"'uncertainty_propagation_samples',h]h&‘uncertainty_propagation_samples’,}(hjNhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhKhj ubj )}(hXThe config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype. Example Schema: .. code-block:: python [ 'batch int', 'eval_id int', 'sprocket_1 double', 'sprocket_2 double', 'flowrate_12 double' 'flowrate_14 double' ] h](h)}(hThe config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype.h]hThe config input dict will be reviewed and all keys that contain the words ‘input’ or ‘result’ will be used as column names with the double datatype.}(hj`hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhK hj\ubj)}(hhh]j)}(hExample Schema: .. code-block:: python [ 'batch int', 'eval_id int', 'sprocket_1 double', 'sprocket_2 double', 'flowrate_12 double' 'flowrate_14 double' ] h](j)}(hExample Schema:h]hExample Schema:}(hjuhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhK.hjqubj)}(hhh]j()}(h[ 'batch int', 'eval_id int', 'sprocket_1 double', 'sprocket_2 double', 'flowrate_12 double' 'flowrate_14 double' ]h]h[ 'batch int', 'eval_id int', 'sprocket_1 double', 'sprocket_2 double', 'flowrate_12 double' 'flowrate_14 double' ]}hjsbah}(h!]h#]h%]h']h)]hjhkj7j8pythonj:}uh+j'hjKhK%hjubah}(h!]h#]h%]h']h)]uh+jhjqubeh}(h!]h#]h%]h']h)]uh+jhjKhK.hjnubah}(h!]h#]h%]h']h)]uh+jhj\hK%ubeh}(h!]h#]h%]h']h)]uh+j hjKhK hj ubh)}(h'uncertainty_propagation_pdf',h]h"‘uncertainty_propagation_pdf’,}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhK0hj ubj )}(hExample Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_pdf double', 'flowrate_14_xtest double', 'flowrate_14_pdf double' ] h]j)}(hhh]j)}(hExample Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_pdf double', 'flowrate_14_xtest double', 'flowrate_14_pdf double' ] h](j)}(hExample Schema:h]hExample Schema:}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhK;hjubj)}(hhh]j()}(h[ 'flowrate_12_xtest double', 'flowrate_12_pdf double', 'flowrate_14_xtest double', 'flowrate_14_pdf double' ]h]h[ 'flowrate_12_xtest double', 'flowrate_12_pdf double', 'flowrate_14_xtest double', 'flowrate_14_pdf double' ]}hjsbah}(h!]h#]h%]h']h)]hjhkj7j8pythonj:}uh+j'hjKhK3hjubah}(h!]h#]h%]h']h)]uh+jhjubeh}(h!]h#]h%]h']h)]uh+jhjKhK;hjubah}(h!]h#]h%]h']h)]uh+jhjhK3ubah}(h!]h#]h%]h']h)]uh+j hjKhK2hj ubh)}(h'uncertainty_propagation_cdf',h]h"‘uncertainty_propagation_cdf’,}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhK=hj ubj )}(hExample Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_cdf double', 'flowrate_14_xtest double', 'flowrate_14_cdf double' ] h]j)}(hhh]j)}(hExample Schema: .. code-block:: python [ 'flowrate_12_xtest double', 'flowrate_12_cdf double', 'flowrate_14_xtest double', 'flowrate_14_cdf double' ] h](j)}(hExample Schema:h]hExample Schema:}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhKHhj ubj)}(hhh]j()}(h[ 'flowrate_12_xtest double', 'flowrate_12_cdf double', 'flowrate_14_xtest double', 'flowrate_14_cdf double' ]h]h[ 'flowrate_12_xtest double', 'flowrate_12_cdf double', 'flowrate_14_xtest double', 'flowrate_14_cdf double' ]}hj* sbah}(h!]h#]h%]h']h)]hjhkj7j8pythonj:}uh+j'hjKhK@hj' ubah}(h!]h#]h%]h']h)]uh+jhj ubeh}(h!]h#]h%]h']h)]uh+jhjKhKHhj ubah}(h!]h#]h%]h']h)]uh+jhj hK@ubah}(h!]h#]h%]h']h)]uh+j hjKhK?hj ubh)}(h%'uncertainty_propagation_sensitivity'h]h)‘uncertainty_propagation_sensitivity’}(hjR hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjKhKJhj ubj )}(hExample Schema: .. code-block:: python [ 'output_variable tinytext', 'sprocket_1 double', 'sprocket_2 double', ] h]j)}(hhh]j)}(hExample Schema: .. code-block:: python [ 'output_variable tinytext', 'sprocket_1 double', 'sprocket_2 double', ] h](j)}(hExample Schema:h]hExample Schema:}(hjk hhhNhNubah}(h!]h#]h%]h']h)]uh+jhjKhKThjg ubj)}(hhh]j()}(hU[ 'output_variable tinytext', 'sprocket_1 double', 'sprocket_2 double', ]h]hU[ 'output_variable tinytext', 'sprocket_1 double', 'sprocket_2 double', ]}hj| sbah}(h!]h#]h%]h']h)]hjhkj7j8pythonj:}uh+j'hjKhKMhjy ubah}(h!]h#]h%]h']h)]uh+jhjg ubeh}(h!]h#]h%]h']h)]uh+jhjKhKThjd ubah}(h!]h#]h%]h']h)]uh+jhj` hKMubah}(h!]h#]h%]h']h)]uh+j hjKhKLhj ubeh}(h!]h#]h%]h']h)]uh+j hjKhKhj:hhubh)}(hhh](h)}(hhh](h)}(h Parametersh]h Parameters}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhj hjhKubh)}(hhh]j,)}(hhh](j1)}(hhh]h)}(h?config (dictionary) -- Inputs provided from the user json file.h](jE)}(hconfigh]hconfig}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj ubh (}(hj hhhNhNubh)}(hhh]j\)}(h dictionaryh]h dictionary}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypeh reftargetj jvjj7jNuh+hhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubh(Inputs provided from the user json file.}(hj hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+j0hj ubj1)}(hhh]h)}(hqdelete_existing_table (bool, optional) -- If the table exists, delete it from the database. The default is False.h](jE)}(hdelete_existing_tableh]hdelete_existing_table}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj ubh (}(hj hhhNhNubh)}(hhh]j\)}(hboolh]hbool}(hj- hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj* ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj/ jvjj7jNuh+hhj ubj\)}(h, h]h, }(hjE hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubh)}(hhh]j\)}(hoptionalh]hoptional}(hjV hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjS ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetjX jvjj7jNuh+hhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubhGIf the table exists, delete it from the database. The default is False.}(hj hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+j0hj ubj1)}(hhh]h)}(hdelete_existing_db (bool, optional) -- If the database exists attempt to delete, although this may not delete if there are other active connections to the database. A warning will be thrown if this occurs. The default is False.h](jE)}(hdelete_existing_dbh]hdelete_existing_db}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj ubh (}(hj hhhNhNubh)}(hhh]j\)}(hboolh]hbool}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj jvjj7jNuh+hhj ubj\)}(h, h]h, }(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubh)}(hhh]j\)}(hoptionalh]hoptional}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj jvjj7jNuh+hhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubhIf the database exists attempt to delete, although this may not delete if there are other active connections to the database. A warning will be thrown if this occurs. The default is False.}(hj hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+j0hj ubeh}(h!]h#]h%]h']h)]uh+j+hj ubah}(h!]h#]h%]h']h)]uh+hhj ubeh}(h!]h#]h%]h']h)]uh+hhj ubh)}(hhh](h)}(h Return typeh]h Return type}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhj hjhKubh)}(hhh]h)}(hNone.h]h)}(hhh]hNone.}(hj% hhhNhNubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetNone.jvjj7jNuh+hhj! ubah}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+hhj ubeh}(h!]h#]h%]h']h)]uh+hhj ubeh}(h!]h#]h%]h']h)]uh+hhj:hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj~hhhjhKubeh}(h!]h#](j functioneh%]h']h)]jj jjX jjX jjjuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hIsetup_sql_db() (in module util)util.setup_sql_dbhNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(hWsetup_sql_db(config, table_name, delete_existing_table=False, delete_existing_db=False)h](hY)}(hutil.h]hutil.}(hjq hhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhjm hhhtC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.setup_sql_dbhKubhn)}(h setup_sql_dbh]h setup_sql_db}(hj hhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhjm hhhj hKubh)}(hIconfig, table_name, delete_existing_table=False, delete_existing_db=Falseh](h)}(hconfigh]h)}(hconfigh]hconfig}(hj hhhNhNubah}(h!]h#]hah%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]hjhkuh+hhj ubh)}(h table_nameh]h)}(h table_nameh]h table_name}(hj hhhNhNubah}(h!]h#]hah%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]hjhkuh+hhj ubh)}(hdelete_existing_table=Falseh](h)}(hdelete_existing_tableh]hdelete_existing_table}(hj hhhNhNubah}(h!]h#]hah%]h']h)]uh+hhj ubjO)}(h=h]h=}(hj hhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhj ubj)}(hFalseh]hFalse}(hj hhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhj ubeh}(h!]h#]h%]h']h)]hjhkuh+hhj ubh)}(hdelete_existing_db=Falseh](h)}(hdelete_existing_dbh]hdelete_existing_db}(hj hhhNhNubah}(h!]h#]hah%]h']h)]uh+hhj ubjO)}(h=h]h=}(hj hhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhj ubj)}(hFalseh]hFalse}(hj hhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhj ubeh}(h!]h#]h%]h']h)]hjhkuh+hhj ubeh}(h!]h#]h%]h']h)]hjhkuh+hhjm hhhj hKubeh}(h!]jh ah#](hheh%]h']h)]hutilhhhj hj8 j hsetup_sql_db()uh+hRhj hKhjj hhubh)}(hhh](h)}(hSetup an SQL database.h]hSetup an SQL database.}(hj> hhhNhNubah}(h!]h#]h%]h']h)]uh+hhtC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.setup_sql_dbhKhj; hhubh)}(hhh]h)}(hhh](h)}(h Return typeh]h Return type}(hjS hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjP hj hKubh)}(hhh]h)}(hNoneh]h)}(h:py:obj:`None`h]h)}(hjj h]hNone}(hjl hhhNhNubah}(h!]h#](jpypy-objeh%]h']h)]uh+hhjh ubah}(h!]h#]h%]h']h)]refdocj refdomainjv reftypeobj refexplicitrefwarnjj8 jNjNoneuh+hhjL hKhjd hhubah}(h!]h#]h%]h']h)]uh+hhja ubah}(h!]h#]h%]h']h)]uh+hhjP ubeh}(h!]h#]h%]h']h)]uh+hhjM ubah}(h!]h#]h%]h']h)]uh+hhj; hhhNhNubj)}(hhh]j)}(hThe schema will use the following column names: batch int eval_id int The config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype. h](j)}(h/The schema will use the following column names:h]h/The schema will use the following column names:}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jhjL hK hj ubj)}(hhh](h)}(hbatch int eval_id inth]hbatch int eval_id int}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjL hKhj ubh)}(hThe config input dict will be reviewed and all keys that contain the words 'input' or 'result' will be used as column names with the double datatype.h]hThe config input dict will be reviewed and all keys that contain the words ‘input’ or ‘result’ will be used as column names with the double datatype.}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjL hK hj ubeh}(h!]h#]h%]h']h)]uh+jhj ubeh}(h!]h#]h%]h']h)]uh+jhjL hK hj ubah}(h!]h#]h%]h']h)]uh+jhj; hhhjL hKubh rubric)}(hExampleh]hExample}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j hj; hhhjL hKubj)}(hhh]j)}(hSchema: .. code-block:: python [ 'batch int', 'eval_id int', 'sprocket_1 double', 'flowrate_14 double' ] h](j)}(hSchema:h]hSchema:}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jhjL hKhj ubj)}(hhh]j()}(hY[ 'batch int', 'eval_id int', 'sprocket_1 double', 'flowrate_14 double' ]h]hY[ 'batch int', 'eval_id int', 'sprocket_1 double', 'flowrate_14 double' ]}hj sbah}(h!]h#]h%]h']h)]hjhkj7j8pythonj:}uh+j'hjL hKhj ubah}(h!]h#]h%]h']h)]uh+jhj ubeh}(h!]h#]h%]h']h)]uh+jhjL hKhj ubah}(h!]h#]h%]h']h)]uh+jhj; hhhNhKubh)}(hbRequires proper IAM role that enables modification of the SQL databased in the 'mysql_db_endpoint'h]hfRequires proper IAM role that enables modification of the SQL databased in the ‘mysql_db_endpoint’}(hj0 hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjL hK hj; hhubh)}(hhh](h)}(hhh](h)}(h Parametersh]h Parameters}(hjD hhhNhNubah}(h!]h#]h%]h']h)]uh+hhjA hj hKubh)}(hhh]j,)}(hhh](j1)}(hhh]h)}(h?config (dictionary) -- Inputs provided from the user json file.h](jE)}(hconfigh]hconfig}(hj_ hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj[ ubh (}(hj[ hhhNhNubh)}(hhh]j\)}(h dictionaryh]h dictionary}(hjt hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjq ubah}(h!]h#]h%]h']h)] refdomainpy refexplicitreftypeh reftargetjv jvjj8 jNuh+hhj[ ubh)}(hj[ hhhNhNubh – }(hj[ hhhNhNubh(Inputs provided from the user json file.}(hj[ hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjX ubah}(h!]h#]h%]h']h)]uh+j0hjU ubj1)}(hhh]h)}(htable_name (str) -- h](jE)}(h table_nameh]h table_name}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj ubh (}(hj hhhNhNubh)}(hhh]j\)}(hstrh]hstr}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj jvjj8 jNuh+hhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+j0hjU ubj1)}(hhh]h)}(hqdelete_existing_table (bool, optional) -- If the table exists, delete it from the database. The default is False.h](jE)}(hdelete_existing_tableh]hdelete_existing_table}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+jDhj ubh (}(hj hhhNhNubh)}(hhh]j\)}(hboolh]hbool}(hj hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj jvjj8 jNuh+hhj ubj\)}(h, h]h, }(hj!hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj ubh)}(hhh]j\)}(hoptionalh]hoptional}(hj2hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj/ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetj4jvjj8 jNuh+hhj ubh)}(hj hhhNhNubh – }(hj hhhNhNubhGIf the table exists, delete it from the database. The default is False.}(hj hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhj ubah}(h!]h#]h%]h']h)]uh+j0hjU ubj1)}(hhh]h)}(hdelete_existing_db (bool, optional) -- If the database exists attempt to delete, although this may not delete if there are other active connections to the database. A warning will be thrown if this occurs. The default is False.h](jE)}(hdelete_existing_dbh]hdelete_existing_db}(hjihhhNhNubah}(h!]h#]h%]h']h)]uh+jDhjeubh (}(hjehhhNhNubh)}(hhh]j\)}(hboolh]hbool}(hj~hhhNhNubah}(h!]h#]h%]h']h)]uh+j[hj{ubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetjjvjj8 jNuh+hhjeubj\)}(h, h]h, }(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjeubh)}(hhh]j\)}(hoptionalh]hoptional}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+j[hjubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetjjvjj8 jNuh+hhjeubh)}(hjehhhNhNubh – }(hjehhhNhNubhIf the database exists attempt to delete, although this may not delete if there are other active connections to the database. A warning will be thrown if this occurs. The default is False.}(hjehhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjbubah}(h!]h#]h%]h']h)]uh+j0hjU ubeh}(h!]h#]h%]h']h)]uh+j+hjR ubah}(h!]h#]h%]h']h)]uh+hhjA ubeh}(h!]h#]h%]h']h)]uh+hhj> ubh)}(hhh](h)}(h Return typeh]h Return type}(hjhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjhj hKubh)}(hhh]h)}(hNone.h]h)}(hhh]hNone.}(hjhhhNhNubah}(h!]h#]h%]h']h)] refdomainj refexplicitreftypeh reftargetNone.jvjj8 jNuh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubah}(h!]h#]h%]h']h)]uh+hhjubeh}(h!]h#]h%]h']h)]uh+hhj> ubeh}(h!]h#]h%]h']h)]uh+hhj; hhhNhNubeh}(h!]h#]h%]h']h)]uh+hhjj hhhj hKubeh}(h!]h#](j functioneh%]h']h)]jj jj4jj4jjjuh+hMhhhh hNhNubh.)}(hhh]h}(h!]h#]h%]h']h)]entries](hI"is_steady_state() (in module util)util.is_steady_statehNtauh+h-hh hhhNhNubhN)}(hhh](hS)}(hRis_steady_state(input_signal, last_n_values=100, method='relative', tolerance=0.0)h](hY)}(hutil.h]hutil.}(hjMhhhNhNubah}(h!]h#](hehfeh%]h']h)]hjhkuh+hXhjIhhhwC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.is_steady_statehKubhn)}(his_steady_stateh]his_steady_state}(hj\hhhNhNubah}(h!]h#](hzh{eh%]h']h)]hjhkuh+hmhjIhhhj[hKubh)}(hAinput_signal, last_n_values=100, method='relative', tolerance=0.0h](h)}(h input_signalh]h)}(h input_signalh]h input_signal}(hjrhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjnubah}(h!]h#]h%]h']h)]hjhkuh+hhjjubh)}(hlast_n_values=100h](h)}(h last_n_valuesh]h last_n_values}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubjO)}(h=h]h=}(hjhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjubj)}(h100h]h100}(hjhhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjjubh)}(hmethod='relative'h](h)}(hmethodh]hmethod}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubjO)}(h=h]h=}(hjhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjubj)}(h 'relative'h]h 'relative'}(hjhhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjjubh)}(h tolerance=0.0h](h)}(h toleranceh]h tolerance}(hjhhhNhNubah}(h!]h#]hah%]h']h)]uh+hhjubjO)}(h=h]h=}(hjhhhNhNubah}(h!]h#]j[ah%]h']h)]uh+jNhjubj)}(h0.0h]h0.0}(hjhhhNhNubah}(h!]h#]jah%]h']h)]support_smartquotesuh+jhjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjjubeh}(h!]h#]h%]h']h)]hjhkuh+hhjIhhhj[hKubeh}(h!]jDah#](hheh%]h']h)]hutilhhhj^hj1j^his_steady_state()uh+hRhj[hKhjFhhubh)}(hhh](h)}(hMCheck if the incoming signal has stopped moving and reached a constant value.h]hMCheck if the incoming signal has stopped moving and reached a constant value.}(hj7hhhNhNubah}(h!]h#]h%]h']h)]uh+hhwC:\Users\rpivovar\Desktop\workingfolder\projects\twinmodules\twinmodules\core\util.py:docstring of util.is_steady_statehKhj4hhubh)}(hDetermination made by regressing the last 'last_n_values' on time and calculating the probability the linear coefficient is different from 'signal_magnitude_relevance'. If 'signal_magnitude_relevance' is not provided, zero is assumed.h]hDetermination made by regressing the last ‘last_n_values’ on time and calculating the probability the linear coefficient is different from ‘signal_magnitude_relevance’. If ‘signal_magnitude_relevance’ is not provided, zero is assumed.}(hjFhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjEhKhj4hhubh)}(h\If it is different from zero, the signal has not reached steady state and False is returned.h]h\If it is different from zero, the signal has not reached steady state and False is returned.}(hjThhhNhNubah}(h!]h#]h%]h']h)]uh+hhjEhKhj4hhubh)}(hX1Example: If we have very noisy temperature it may be difficult to determine exactly when it is steady state, but we also maybe only care about temperature increases above 1deg. Thus, use 'signal_magnitude_relevance'=1.0 and steady will only be True if the signal is changing at a rate of 1deg/s or less.h]hX5Example: If we have very noisy temperature it may be difficult to determine exactly when it is steady state, but we also maybe only care about temperature increases above 1deg. Thus, use ‘signal_magnitude_relevance’=1.0 and steady will only be True if the signal is changing at a rate of 1deg/s or less.}(hjbhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjEhK hj4hhubh)}(hhh](h)}(hhh](h)}(h Parametersh]h Parameters}(hjvhhhNhNubah}(h!]h#]h%]h']h)]uh+hhjshj[hKubh)}(hhh]j,)}(hhh](j1)}(hhh]h)}(h