Commit c254e262 authored by Mario's avatar Mario
Browse files

formatting needed

parent 9f8887d3
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -2496,6 +2496,7 @@ class DataFrame(DataProcessor, pd.DataFrame):

        return df


def df_concat(*frames):
    frame = pd.concat(frames, axis=0, ignore_index=True)
    frame.__class__ == DataFrame
+9 −2
Original line number Diff line number Diff line
@@ -202,7 +202,14 @@ class DatabaseManager(object, metaclass=Singleton):

        db_dir.unlink(missing_ok=True)

    def save_df(self, df:DataFrame|pd.DataFrame, file_name:str|os.PathLike, version=2, compression="lz4", **kwargs):
    def save_df(
        self,
        df: DataFrame | pd.DataFrame,
        file_name: str | os.PathLike,
        version=2,
        compression="lz4",
        **kwargs
    ):
        """Save the data stored in df as file_name, where file_name is the direct path to the file.

        Parameters
+5 −2
Original line number Diff line number Diff line
@@ -514,7 +514,10 @@ class DocuDutLib(object):
                    if not plot_spec["dut_filter"](dut):
                        continue
                elif "dut_type" in plot_spec:
                    if not (dut.dut_type.is_subtype(plot_spec["dut_type"]) or (dut.dut_type == plot_spec["dut_type"])):
                    if not (
                        dut.dut_type.is_subtype(plot_spec["dut_type"])
                        or (dut.dut_type == plot_spec["dut_type"])
                    ):
                        continue

                if obtain(plot_spec, "simulate", dut.dut_type, plot_type, True):
+1 −2
Original line number Diff line number Diff line
@@ -154,8 +154,7 @@ class DutTypeInt(object):
        return res == other

    def __lt__(self, other):
        """ comparision for Sorting!
        """
        """comparision for Sorting!"""
        try:
            return DutTypeInt(self.value < other.value, string=self.get_string(), nodes=self.nodes)
        except AttributeError: