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:
@ -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
|
||||
|
Reference in New Issue
Block a user