a
    CPÎj‡  ã                	   @   s|   d dl mZ d dlmZ d dlmZ g d¢Zedƒdfeeddœd	d
„Zedƒdddddfeee eee	e
ddœdd„ZdS )é    )ÚPath)ÚOptional)Úload_results)Úcompute_configÚrun_dashboardr   zconfig.yamlFN)Úconfig_fileÚforceÚreturnc                 C   s:   ddl m} | ¡  ddlm} |j| |d�}||ƒ dS )a  Run the LCA and fit on the config file.

    Parameters
    ----------
    config_file
        The config file to run the computations on, by default Path("config.yaml")
    force
        Force the computation, i.e. do not load (intermediate) results, by default False
    r   ©Úutils)Úrun_workflow)r   r   N)ÚmetaDMGr   Zcheck_metaDMG_fitZmetaDMG.fitr   Zmake_configs)r   r   r   r   Zconfigs© r   ú\/mounts/lovelace/software/anaconda3/envs/metadmg/lib/python3.9/site-packages/metaDMG/main.pyr      s
    r   ir  z0.0.0.0)r   ÚresultsÚdebugÚserverÚportÚhostr	   c           	      C   sD   ddl m} | ¡  ddlm} |j| |d�}||||||d� dS )a&  Visualise the results in an interactive dashboard

    Parameters
    ----------
    config_file
        The the config file to use to locate the results directory, by default Path("config.yaml")
    results
        The results directory, by default None
    debug
        Whether or not the debug-button should be displayed, by default False
    server
        Whether or not it should behave as running on a server, by default False
    port
        Dashboard port, by default 8050
    host
        Dashboard host address, by default "0.0.0.0"
    r   r
   )Ústart_dashboard)r   Úresults_dir)r   r   r   r   r   N)r   r   Zcheck_metaDMG_vizZmetaDMG.vizr   Zget_results_dir)	r   r   r   r   r   r   r   r   r   r   r   r   r   $   s    þûr   )Úpathlibr   Útypingr   ZmetaDMG.filtersr   Ú__all__Úboolr   ÚintÚstrr   r   r   r   r   Ú<module>   s2   þýúù