flowcraft/generator/inspect.py
def _dag_file_to_dict(self):
        """Function that opens the dotfile named .treeDag.json in the current
        working directory

        Returns
        -------
        Returns a dictionary with the dag object to be used in the post
        instance available through the method _establish_connection

        """
        try:
            dag_file = open(os.path.join(self.workdir, ".treeDag.json"))
            dag_json = json.load(dag_file)
        except (FileNotFoundError, json.decoder.JSONDecodeError):
            logger.warning(colored_print(
                "WARNING: dotfile named .treeDag.json not found or corrupted",
                "red_bold"))
            dag_json = {}

        return dag_json
def _dag_file_to_dict(self):
        try:
            dag_file = open(os.path.join(self.workdir, ".treeDag.json"))
            dag_json = json.load(dag_file)
        except (FileNotFoundError, json.decoder.JSONDecodeError):
            logger.warning(colored_print(
                "WARNING: dotfile named .treeDag.json not found or corrupted",
                "red_bold"))
            dag_json = {}

        return dag_json
def _dag_file_to_dict ( self ) : try : dag_file = open ( os . path . join ( self . workdir , ".treeDag.json" ) ) dag_json = json . load ( dag_file ) except ( FileNotFoundError , json . decoder . JSONDecodeError ) : logger . warning ( colored_print ( "WARNING: dotfile named .treeDag.json not found or corrupted" , "red_bold" ) ) dag_json = { } return dag_json
Function that opens the dotfile named .treeDag.json in the current
        working directory

        Returns
        -------
        Returns a dictionary with the dag object to be used in the post
        instance available through the method _establish_connection
Function that opens the dotfile named . treeDag . json in the current working directory