DFImportResults component

Contents

_images/icon17.png

DFImportResults component#

It loads the DF result object from a file .diffCheck.

Inputs:

i_import_path (str ,item)

The path to the file of the .diffCheck file.

Outputs:

o_results

The loaded DF result object.

Code:

#! python3

from ghpythonlib.componentbase import executingcomponent as component

from diffCheck.df_error_estimation import DFVizResults


class DFImportResults(component):
    def RunScript(self, i_import_path: str):
        if i_import_path is None:
            return None

        o_results = DFVizResults.load_serialization(i_import_path)

        return o_results