How to use the ttp.ttp._results_class function in ttp

To help you get started, we’ve selected a few ttp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dmulyalin / ttp / ttp / ttp.py View on Github external
self.update_groups_runs(self.vars)

        # sort results for groups with global outputs
        [
            raw_results.append(
                [group_result[key] for key in sorted(list(group_result.keys()))]
            )
            for group_result in unsort_rslts
            if group_result
        ]

        # import pprint
        # pprint.pprint(raw_results)

        # form results for global groups:
        RSLTSOBJ = _results_class()
        RSLTSOBJ.make_results(self.vars, raw_results, main_results=self.main_results)
        self.main_results = RSLTSOBJ.results

        # sort results for groups with group specific outputs
        [
            grps_raw_results.append(
                # tuple item that contains group.outputs:
                (
                    [
                        group_result[0][key]
                        for key in sorted(list(group_result[0].keys()))
                    ],
                    group_result[1],
                )
            )
            for group_result in grps_unsort_rslts