Version 3.1¶
Version 3.1.1¶
🛠️ Bug fixes:
‘Apply’ button state is now correctly updated when modifying one of the following items:
dataset.MultipleChoiceItemdataset.dataitems.DictItemdataset.dataitems.FloatArrayItem
Fixed minor deprecation and other issues related to locale
💥 Changes:
Removed
--unattendedcommand line option forpytest:Before:
pytest --unattended guidata(to run tests without Qt event loop)Now:
pytest guidata(there is no use case for running tests with Qt event loop, so the--unattendedoption was removed and the unattended mode is now the default)
Removed CHM documentation (obsolete format)
Version 3.1.0¶
⚠ Exceptionally, this release contains the following API breaking changes:
Moved
utils.update_datasettodataset.conv.update_datasetMoved
utils.restore_datasettodataset.conv.restore_dataset
✔ API simplification (backward compatible):
Dataset items may now be imported from
guidata.datasetinstead ofguidata.dataset.dataitemsDataset types may now be imported from
guidata.datasetinstead ofguidata.dataset.datatypesExamples:
from guidata.dataset.dataitems import FloatItembecomesfrom guidata.dataset import FloatItemfrom guidata.dataset.datatypes import DataSetbecomesfrom guidata.dataset import DataSetOr you may now write:
import guidata.dataset as gds class MyParameters(gds.DataSet): """My parameters""" freq = gds.FloatItem("Frequency", default=1.0, min=0.0, nonzero=True) amp = gds.FloatItem("Amplitude", default=1.0, min=0.0)
💥 New features:
New
dataset.create_dataset_from_dict: create a dataset from a dictionary, using keys and values to create the dataset itemsNew
dataset.create_dataset_from_func: create a dataset from a function signature, using type annotations and default values to create the dataset itemsdataset.dataitems.StringItem:Added argument
passwordto hide text (useful for passwords)Added argument
regexpto validate text using a regular expression
dataset.dataitems.FileSaveItem,dataset.dataitems.FileOpenItem,dataset.dataitems.FilesOpenItemanddataset.dataitems.DirectoryItem: added argumentregexpto validate file/dir name using a regular expressiondataset.dataitems.DictItem: added support for HDF5 and JSON serializationdataset.io.h5fmtanddataset.io.jsonfmt: added support for lists and dictionnaries serialization
♻ New PlotPyStack internal features:
widgets.about: handle about dialog box informations (Python, Qt, Qt bindings, …)Renamed development environment variable
GUIDATA_PYTHONEXEtoPPSTACK_PYTHONEXE
🧹 Bug fixes:
Fixed Qt6 compatibility issue with
QFontDatabase