From 666536b776423057bdc96a7a01971bc3e1660fd7 Mon Sep 17 00:00:00 2001 From: Till Piepenbrock Date: Thu, 8 Jan 2026 10:30:37 +0100 Subject: [PATCH 1/2] exclude dc-bias data from overview table by default --- materialdatabase/processing/data_structure.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/materialdatabase/processing/data_structure.py b/materialdatabase/processing/data_structure.py index ddedf0d..5dfecff 100644 --- a/materialdatabase/processing/data_structure.py +++ b/materialdatabase/processing/data_structure.py @@ -189,10 +189,19 @@ def plot_boolean_dataframe(df: pd.DataFrame) -> None: plt.tight_layout() plt.show() - def plot_available_data(self) -> None: - """Plot the existing data of the materialdatabase.""" - logger.info(self.build_overview_table()) - self.plot_boolean_dataframe(self.build_overview_table()) + def plot_available_data(self, exclude_dc_bias: bool = True) -> None: + """Plot the existing data of the materialdatabase. + + :param exclude_dc_bias: exclude DC-bias data to prevent an overcrowded plot + :return: + """ + available_data = self.build_overview_table() + + if exclude_dc_bias: + available_data = available_data[~available_data.index.str.contains("_")] + + logger.info(available_data) + self.plot_boolean_dataframe(available_data) def get_complex_data_set(self, material: Material, data_source: DataSource, data_type: ComplexDataType) -> pd.DataFrame: """ From 63e651270ef7a5fe68f034f67f555643e8b63b27 Mon Sep 17 00:00:00 2001 From: Till Piepenbrock Date: Thu, 8 Jan 2026 10:37:12 +0100 Subject: [PATCH 2/2] linting --- materialdatabase/processing/data_structure.py | 1 - 1 file changed, 1 deletion(-) diff --git a/materialdatabase/processing/data_structure.py b/materialdatabase/processing/data_structure.py index 5dfecff..cc3cd26 100644 --- a/materialdatabase/processing/data_structure.py +++ b/materialdatabase/processing/data_structure.py @@ -193,7 +193,6 @@ def plot_available_data(self, exclude_dc_bias: bool = True) -> None: """Plot the existing data of the materialdatabase. :param exclude_dc_bias: exclude DC-bias data to prevent an overcrowded plot - :return: """ available_data = self.build_overview_table()