Skip to content

Commit

Permalink
Add Raman map alignment warning (and fix typo in another warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Oct 15, 2024
1 parent 4ba00f3 commit d45c0e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pydatalab/src/pydatalab/apps/raman_map/blocks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import warnings
from pathlib import Path

import bokeh
Expand Down Expand Up @@ -190,6 +191,10 @@ def generate_baseline(x_data, y_data):
def generate_raman_map_plot(self):
file_info = None

warnings.warn(
"The alignment of spectra grid and image cannot yet be guaranteed; please verify any plot you create."
)

if "file_id" not in self.data:
return None

Expand Down
2 changes: 1 addition & 1 deletion pydatalab/src/pydatalab/blocks/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def load(cls, location: Path) -> pd.DataFrame:

if df.isnull().values.any():
warnings.warn(
"Loading file with less strict parser: columns were previously detected as {df.columns}"
f"Loading file with less strict parser: columns were previously detected as {df.columns}"
)
df = pd.read_csv(
location,
Expand Down

0 comments on commit d45c0e6

Please sign in to comment.