Refactor spreadsheet processing to improve validation logic

Enhanced value cleaning and validation for spreadsheet data with dynamic handling of columns and corrections. Improved feedback for users with detailed error messages and visual indicators for corrected or defaulted values. Simplified backend and frontend logic for better maintainability and usability.
This commit is contained in:
GotthardG
2025-01-13 21:55:15 +01:00
parent f855930340
commit f6c19cc4da
5 changed files with 221 additions and 110 deletions

View File

@ -88,6 +88,14 @@ class SpreadsheetModel(BaseModel):
) from e
return v
# if not v: # Handles None or empty cases
# default_value = "{sgPuck}/{sgPosition}"
# logger.warning(
# f"'directory' field is empty or None. Assigning default value: "
# f"{default_value}"
# )
# return default_value
# class TELLModel(SpreadsheetModel):
# input_order: int
# samplemountcount: int = 0