|
6 | 6 | from pathlib import Path
|
7 | 7 | from typing import Any, Literal, Optional
|
8 | 8 |
|
9 |
| -import plotly.graph_objects as go |
10 | 9 | from calipytion.model import Calibration
|
11 | 10 | from calipytion.tools.utility import pubchem_request_molecule_name
|
12 | 11 | from loguru import logger
|
@@ -904,21 +903,6 @@ def get_molecule(self, molecule_id: str) -> Molecule:
|
904 | 903 |
|
905 | 904 | raise ValueError(f"Molecule with ID {molecule_id} not found.")
|
906 | 905 |
|
907 |
| - def visualize_all( |
908 |
| - self, assigned_only: bool = False, dark_mode: bool = False, show: bool = False |
909 |
| - ) -> go.Figure: |
910 |
| - """Plots the fitted peaks of the chromatograms in an interactive figure. |
911 |
| -
|
912 |
| - Args: |
913 |
| - assigned_only (bool, optional): If True, only the peaks that are assigned to a molecule are plotted. Defaults to False. |
914 |
| - dark_mode (bool, optional): If True, the figure is displayed in dark mode. Defaults to False. |
915 |
| - show (bool, optional): If True, shows the figure. Defaults to False. |
916 |
| -
|
917 |
| - Returns: |
918 |
| - go.Figure: The plotly figure object. |
919 |
| - """ |
920 |
| - return visualize.visualize_all(self, assigned_only, dark_mode, show) |
921 |
| - |
922 | 906 | def add_standard(
|
923 | 907 | self,
|
924 | 908 | molecule: Molecule,
|
@@ -1030,18 +1014,6 @@ def _update_protein(self, protein: Protein) -> None:
|
1030 | 1014 |
|
1031 | 1015 | self.proteins.append(protein)
|
1032 | 1016 |
|
1033 |
| - def visualize_spectra(self, dark_mode: bool = False) -> go.Figure: |
1034 |
| - """ |
1035 |
| - Plots all chromatograms in the Handler in a single plot. |
1036 |
| -
|
1037 |
| - Args: |
1038 |
| - dark_mode (bool, optional): If True, the figure is displayed in dark mode. Defaults to False. |
1039 |
| -
|
1040 |
| - Returns: |
1041 |
| - go.Figure: The plotly figure object. |
1042 |
| - """ |
1043 |
| - return visualize.visualize_spectra(self, dark_mode) |
1044 |
| - |
1045 | 1017 | def visualize(
|
1046 | 1018 | self,
|
1047 | 1019 | n_cols: int = 2,
|
|
0 commit comments