Update dependencies and enhance CSV metadata handling

- Updated requirements.txt to specify minimum versions for PySide6, pyqtgraph, and numpy.
- Modified CSVFileMetadata class to include a new master_type attribute for improved metadata representation.
- Enhanced FileBrowser class to handle master_type in metadata saving and retrieval.
- Added a new method in FileBrowser for parsing CSV metadata, improving error handling and data extraction.
- Adjusted LocalSettingsModel to format code and change default reverseZWafer setting to False.
This commit is contained in:
Jack.Le
2026-05-05 10:00:00 -07:00
parent bbe7baea5b
commit f24dd89e8e
4 changed files with 55 additions and 6 deletions
+7 -3
View File
@@ -48,14 +48,16 @@ class LocalSettingsModel(QObject):
self._recompute_derived()
def _resolve_data_dir(self) -> Path:
documents_dir = QStandardPaths.writableLocation(QStandardPaths.DocumentsLocation)
documents_dir = QStandardPaths.writableLocation(
QStandardPaths.DocumentsLocation
)
base_dir = Path(documents_dir) if documents_dir else (Path.home() / "Documents")
return base_dir / "isc_data"
def _new_defaults(self) -> dict[str, Any]:
return {
"chamberId": "2",
"reverseZWafer": True,
"reverseZWafer": False,
"debugMode": False,
"waferReadTimeout": 120000,
"waferDetectTimeout": 5000,
@@ -250,7 +252,9 @@ class LocalSettingsModel(QObject):
@Slot()
def loadSettings(self) -> None:
loaded = LocalSettings.read_settings(str(self._data_dir))
self._chamber_id = str(loaded.chamber_id).strip() or str(self._defaults["chamberId"])
self._chamber_id = str(loaded.chamber_id).strip() or str(
self._defaults["chamberId"]
)
self._reverse_z_wafer = bool(loaded.reverse_z_wafer)
self._debug_mode = bool(loaded.debug)
self._wafer_read_timeout = int(loaded.wafer_read_timeout)