Skip to content

Commit 8223119

Browse files
committed
Fix: HDF5 file opening dialog ignores user's choice
Fixes #267
1 parent c2adb41 commit 8223119

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ See DataLab [roadmap page](https://datalab-platform.com/en/contributing/roadmap.
2222
* Fixed `ValueError: Buffer has wrong number of dimensions` error when creating masks from polygonal ROIs in the ROI editor
2323
* The PolygonalTool was incorrectly initializing ROI coordinates as a nested list instead of a flat list, causing mask computation to fail
2424

25+
**HDF5 file opening dialog:**
26+
27+
* Fixed bug where user's choice in the "clear workspace" confirmation dialog was ignored when opening HDF5 files
28+
* When the user clicked "No" in the dialog, the default configuration setting was applied instead of respecting the user's choice
29+
* This closes [Issue #267](https://github.com/datalab-platform/datalab/issues/267) - HDF5 file opening dialog ignores user's choice
30+
2531
## DataLab Version 1.0.1 ##
2632

2733
This major release represents a significant milestone for DataLab with numerous enhancements across all areas. The changes are organized by category for easier navigation.

datalab/gui/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,8 @@ def open_h5_files(
16171617
)
16181618
if answer == QW.QMessageBox.Yes:
16191619
reset_all = True
1620+
elif answer == QW.QMessageBox.No:
1621+
reset_all = False
16201622
elif answer == QW.QMessageBox.Ignore:
16211623
Conf.io.h5_clear_workspace_ask.set(False)
16221624
if h5files is None:

doc/locale/fr/LC_MESSAGES/changelog.po

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: DataLab \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-11-29 16:48+0100\n"
10+
"POT-Creation-Date: 2025-11-29 17:18+0100\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language: fr\n"
@@ -45,6 +45,9 @@ msgstr "**Prise en charge des coordonnées non uniformes :**"
4545
msgid "ROI coordinates are now automatically rounded to appropriate precision when defining ROIs interactively from geometrical shapes, avoiding excessive decimal places while maintaining reasonable precision relative to data sampling (1/10th of sampling period for signals, 1/10th of pixel spacing for images)"
4646
msgstr "Les coordonnées des ROI sont désormais automatiquement arrondies à une précision appropriée lors de la définition interactive des ROI à partir de formes géométriques, évitant ainsi des décimales excessives tout en maintenant une précision raisonnable par rapport à l'échantillonnage des données (1/10e de la période d'échantillonnage pour les signaux, 1/10e de l'espacement des pixels pour les images)"
4747

48+
msgid "ROI coordinates are also rounded when displaying them in the \"Edit numerically\" dialog, preventing floating-point arithmetic errors from showing excessive decimal places (e.g., 172.29999999999995 is now displayed as 172.3)"
49+
msgstr "Les coordonnées des ROI sont également arrondies lors de leur affichage dans la boîte de dialogue \"Éditer numériquement\", empêchant les erreurs d'arithmétique en virgule flottante d'afficher des décimales excessives (par exemple, 172.29999999999995 est désormais affiché sous forme de 172.3)"
50+
4851
msgid "This closes [Issue #266](https://github.com/datalab-platform/datalab/issues/266) - Excessive decimal places in ROI coordinates"
4952
msgstr "Ceci clôture [Issue #266](https://github.com/datalab-platform/datalab/issues/266) - Décimales excessives dans les coordonnées des ROI"
5053

@@ -57,6 +60,18 @@ msgstr "Correction de l'erreur `ValueError: Buffer has wrong number of dimension
5760
msgid "The PolygonalTool was incorrectly initializing ROI coordinates as a nested list instead of a flat list, causing mask computation to fail"
5861
msgstr "Le PolygonalTool initialisait incorrectement les coordonnées des ROI sous forme de liste imbriquée au lieu d'une liste plate, ce qui provoquait l'échec du calcul du masque"
5962

63+
msgid "**HDF5 file opening dialog:**"
64+
msgstr "**Boîte de dialogue d'ouverture de fichiers HDF5 :**"
65+
66+
msgid "Fixed bug where user's choice in the \"clear workspace\" confirmation dialog was ignored when opening HDF5 files"
67+
msgstr "Correction du bug où le choix de l'utilisateur dans la boîte de dialogue de confirmation \"effacer l'espace de travail\" était ignoré lors de l'ouverture de fichiers HDF5"
68+
69+
msgid "When the user clicked \"No\" in the dialog, the default configuration setting was applied instead of respecting the user's choice"
70+
msgstr "Lorsque l'utilisateur cliquait sur \"Non\" dans la boîte de dialogue, le paramètre de configuration par défaut était appliqué au lieu de respecter le choix de l'utilisateur"
71+
72+
msgid "This closes [Issue #267](https://github.com/datalab-platform/datalab/issues/267) - HDF5 file opening dialog ignores user's choice"
73+
msgstr "Ceci clôture [Issue #267](https://github.com/datalab-platform/datalab/issues/267) - La boîte de dialogue d'ouverture de fichiers HDF5 ignore le choix de l'utilisateur"
74+
6075
msgid "DataLab Version 1.0.1"
6176
msgstr "DataLab Version 1.0.1"
6277

0 commit comments

Comments
 (0)