Recent Releases of guidata
guidata - v3.12.0
Version 3.12.0
๐ฅ New features:
New operator property
FuncPropMultifor handling multiple properties:- This property allows you to apply a function to multiple item properties at once.
- It can be used to create more complex dependencies between items in a dataset.
- See the
guidata.tests.dataset.test_activable_itemsmodule for an example of usage.
New script
gbuildfor building the package:- This script is a wrapper around the
guidata.utils.securebuildmodule, which ensures that the build process is secure and reproducible. - It checks that the
pyproject.tomlfile is present in the root of the repository, and that it is committed to Git. - It also ensures that the build process is reproducible by using a temporary directory for the build artifacts.
- This script is a wrapper around the
New
qt_wait_untilfunction (guidata.qthelpers) for waiting until a condition is met:- This function allows you to wait for a specific condition to be true, while still processing Qt events.
- It can be useful in situations where you need to wait for a background task to complete or for a specific UI state to be reached.
Renamed scripts associated to
guidata.utils.translationsandguidata.utils.genreqsmodules:guidata-translationsis nowgtransguidata-genreqsis nowgreqs
๐ ๏ธ Bug fixes:
- Issue #90 -
BoolItem: Fix checkbox state management inqtitemwidgets- Before this fix, the checkbox state was not correctly managed when the item's active state changed.
- In other words, when using
set_prop("display", active=onBoolItem, the checkbox was not updated. - The checkbox state is now correctly managed based on the item's active state.
- This fixes a regression introduced in version 3.3.0 with the new dataset read-only mode feature.
- Requirements generation scripts (
greqsorpython -m guidata.utils.genreqs):- Before this fix, strict superior version requirements (e.g.
pyqt5 > 5.15) were skipped in the generated requirements files (with a warning message). - Now, these strict superior version requirements are included but the version is not specified (e.g.
pyqt5instead ofpyqt5 > 5.15). - A warning message is still displayed to inform the user that the version is not specified.
- Before this fix, strict superior version requirements (e.g.
- Issue with automated test suite using
exec_dialog:- The
exec_dialogfunction was not properly handling the dialog closure in automated tests. - This could lead to unexpected behavior and side effects between tests.
- The fix ensures that all pending Qt events are processed before scheduling the dialog closure.
- This avoids the necessity to use timeouts in tests, which can lead to flaky tests.
- The
โน๏ธ Other changes:
- Updated dependencies following the latest security advisories (NumPy >= 1.22)
- Added
pre-commithook to runruff(bothruff checkandruff format) on commit - Added missing
buildoptional dependency to development dependencies inpyproject.toml - Visual Studio Code tasks:
- Major overhaul (cleanup and simplification)
- Removal of no longer used batch files
- Python
Published by PierreRaybaut about 1 year ago
guidata - v3.11.0
Version 3.11.0
๐ฅ New features:
- New
utils.genreqsmodule for generating installation requirements files:- Function
generate_requirements_txtgenerates arequirements.txtfile - Function
generate_requirements_rstgenerates arequirements.rstfile - The module is used by the new command line script
guidata-genreqs
- Function
- Python
Published by PierreRaybaut about 1 year ago
guidata - v3.10.0
Version 3.10.0
๐ฅ New features:
- Issue #81 - Modernize the internationalization utilities
- The
guidata.utils.gettext_helpersmodule, based on thegettextmodule, has been deprecated. - It has been replaced by a new module
guidata.utils.translations, which provides a more modern and flexible way to handle translations, thanks to thebabellibrary. - This change introduces a new script for managing translations, which may be used as follows:
- Scan for new translations:
python -m guidata.utils.translations scan --name <name> --directory <directory>- or
guidata-translations scan --name <name> --directory <directory>
- Compile translations:
python -m guidata.utils.translations compile --name <name> --directory <directory>- or
guidata-translations compile --name <name> --directory <directory>
- More options are available, see the help message of the script:
python -m guidata.utils.translations --help- or
guidata-translations --help
- The
๐ ๏ธ Bug fixes:
- Issue #88 -
DictItemdefault value persists across dataset instances (missingdeepcopy)- This issue is as old as the
DictItemclass itself. - When using a
DictItemin a dataset, if a value is set to the item instance, this value was incorrectly used as the default for the next instance of the same dataset class. - This happened because a
deepcopywas not made when setting the defaults of the class items inguidata.dataset.datatypes. - The fix ensures that each dataset instance has its own independent default value for
DictItem, preventing side effects from one instance to another.
- This issue is as old as the
- Python
Published by PierreRaybaut about 1 year ago
guidata - v3.9.0
๐ฅ New features:
- Issue #87 - Array editor: add an option to paste data (Ctrl+V)
- Issue #85 - Array editor: add a button to export data as CSV
- Issue #86 - Array editor: add "Copy all" feature for copying array and headers to clipboard
- Python
Published by PierreRaybaut about 1 year ago
guidata - v3.8.0
โน๏ธ Changes:
utils.gettext_helpers:do_rescan_files: use--no-locationoption to avoid including the file location in the translation filesmsgmerge: use--updateoption to avoid regenerating the translation files
- Replace
flake8withrufffor linting in GitHub Actions workflow
๐ ๏ธ Bug fixes:
- Issue #84 - Side effects of
win32_fix_title_bar_backgroundwithQGraphicsEffectactive - Issue #82 - Autodoc extension: translation of generic documentation text
- Initially, the generic documentation text like "Returns a new instance of" was translated using the
gettextfunction. - This was a mistake, as this text should be translated only after the documentation has been generated, i.e. by the
sphinx-intltool. - In other words, translating those generic texts should be done in the application documentation, not in the library itself.
- To fix this issue, the generic documentation text is no longer translated using
gettext, but is left as is in the source code.
- Initially, the generic documentation text like "Returns a new instance of" was translated using the
- Issue #80 -
ValueErrorwhen trying to show/edit an empty array
- Python
Published by PierreRaybaut about 1 year ago
guidata - v3.6.3
In this release, test coverage is 74%.
๐ฅ New features:
- MultipleChoiceItem: implemented
callbackproperty feature (was unexpectedly not supported)
๐ ๏ธ Bug fixes:
- Issue #78 - PySide6 on Linux:
AttributeError: 'DataFrameView' object has no attribute 'MoveLeft' - Issue #77 - PyQt6/PySide6 on Linux:
AttributeError: type object 'PySide6.QtGui.QPalette' has no attribute 'Background' - Add 'Monospace' and 'Menlo' to the list of fixed-width supported fonts
- Font warning message in configtools.py: replace
printbywarnings.warn
- Python
Published by PierreRaybaut almost 2 years ago
guidata - v3.6.1
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
- Light/dark theme support:
- Auto light/dark theme: quering OS setting only once, or each time the
set_color_mode('auto')function is called - Fix console widget color theme: existing text in console widget was not updated when changing color theme
- Fixed issue with dark theme on Windows: the windows title bar background was not updated when the theme was changed from dark to light (the inverse was working) - this is now fixed in
guidata.qthelpers.win32_fix_title_bar_backgroundfunction - Added
guidata.qthelpers.set_color_modefunction to set the color mode ('dark', 'light' or 'auto' for system default) - Added
guidata.qthelpers.get_color_modefunction to get the current color mode ('dark', 'light' or 'auto' for system default) - Added
guidata.qthelpers.get_color_themefunction to get the current color theme ('dark' or 'light') - Added
guidata.qthelpers.get_background_colorfunction to get the current backgroundQColorassociated with the current color theme - Added
guidata.qthelpers.get_foreground_colorfunction to get the current foregroundQColorassociated with the current color theme - Added
guidata.qthelpers.is_dark_themefunction to check if the current theme is dark) - As a consequence,
guidata.qthelpers.is_dark_modeandguidata.qthelpers.set_dark_modefunctions are deprecated, respectively in favor ofguidata.qthelpers.is_dark_themeandguidata.qthelpers.set_color_mode
- Auto light/dark theme: quering OS setting only once, or each time the
- Python
Published by PierreRaybaut almost 2 years ago
guidata - v3.6.0
Version 3.6.0
In this release, test coverage is 74%.
๐ฅ New features:
- Improved dark/light mode theme update:
- The theme mode may be changed during the application lifetime
- Added methods
update_color_modeonCodeEditorandConsoleBaseWidgetwidgets
Version 3.5.3
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
Configuration initialization on Windows:
- For various reasons, a
PermissionErrorexception may be raised when trying to remove the configuration file on Windows, just after having created it for the first time. This is due to the fact that the file is still locked by the file system, even if the file has been closed. This is a known issue with Windows file system, and the solution is to wait a little bit before trying to remove the file. - To fix this issue, a new
try_remove_filefunction has been added to theuserconfigmodule, which tries multiple times to remove the file before raising an exception.
- For various reasons, a
Moved back
conftest.pyto thetestsfolder (was in the root folder), so thatpytestcan be executed with proper configuration when running the test suite from the installed package
- Python
Published by PierreRaybaut almost 2 years ago
guidata - v3.5.3
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
Configuration initialization on Windows:
- For various reasons, a
PermissionErrorexception may be raised when trying to remove the configuration file on Windows, just after having created it for the first time. This is due to the fact that the file is still locked by the file system, even if the file has been closed. This is a known issue with Windows file system, and the solution is to wait a little bit before trying to remove the file. - To fix this issue, a new
try_remove_filefunction has been added to theuserconfigmodule, which tries multiple times to remove the file before raising an exception.
- For various reasons, a
Moved back
conftest.pyto thetestsfolder (was in the root folder), so thatpytestcan be executed with proper configuration when running the test suite from the installed package
- Python
Published by PierreRaybaut almost 2 years ago
guidata - v3.5.2
Version 3.5.2
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
- Add support for NumPy 2.0:
- Use
numpy.asarrayinstead ofnumpy.array(..., copy=False) - Remove deprecated
numpy.core.multiarraymodule import
- Use
Version 3.5.1
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
- PR #74 -
configtools.font_is_installed: fix PySide2 compat. issue (thanks to @xiaodaxia-2008) - Creating a dataset using the
createclass method:- Before, passing unknown keyword arguments failed silently (e.g.
MyParameters.create(unknown=42)). - Now, an
AttributeErrorexception is raised when passing unknown keyword arguments, as expected.
- Before, passing unknown keyword arguments failed silently (e.g.
- Processing Qt event loop in unattended mode before closing widgets and quitting the application, so that all pending events are processed before quitting: this includes for instance the drawing events of widgets, which may be necessary to avoid a crash when closing the application (e.g. if drawing the widget is required for some reason before closing it) or at least to ensure that test coverage includes all possible code paths.
โน๏ธ Other changes:
- Preparing for NumPy V2 compatibility: this is a work in progress, as NumPy V2 is not yet released. In the meantime, requirements have been updated to exclude NumPy V2.
- Internal package reorganization: moved icons to
guidata/data/iconsfolder - The
delaycommand line option for environment execution objectexecenvis now expressed in milliseconds (before it was in seconds), for practical reasons - Explicitely exclude NumPy V2 from the dependencies (not compatible yet)
Version 3.5.0
In this release, test coverage is 74%.
๐ฅ New features:
- New Sphinx autodoc extension:
- Allows to document dataset classes and functions using Sphinx directives, thus generating a comprehensive documentation for datasets with labels, descriptions, default values, etc.
- The extension is available in the
guidata.dataset.autodocmodule - Directives:
autodataset: document a dataset classautodataset_create: document a dataset creation functiondatasetnote: add a note explaining how to use a dataset
BoolItem/TextItem: add support for callbacks when the item value changes
๐ ๏ธ Bug fixes:
- Documentation generation: automatic requirement table generation feature was failing
when using version conditions in the
pyproject.tomlfile (e.g.pyqt5 >= 5.15). - Issue #72 - unit test leave files during the build usr/lib/python3/dist-packages/test.json
- Issue #73 -
ChoiceItemradio buttons are duplicated when using callbacks
- Python
Published by PierreRaybaut about 2 years ago
guidata - v3.5.1
Version 3.5.1
In this release, test coverage is 74%.
๐ ๏ธ Bug fixes:
- PR #74 -
configtools.font_is_installed: fix PySide2 compat. issue (thanks to @xiaodaxia-2008) - Creating a dataset using the
createclass method:- Before, passing unknown keyword arguments failed silently (e.g.
MyParameters.create(unknown=42)). - Now, an
AttributeErrorexception is raised when passing unknown keyword arguments, as expected.
- Before, passing unknown keyword arguments failed silently (e.g.
- Processing Qt event loop in unattended mode before closing widgets and quitting the application, so that all pending events are processed before quitting: this includes for instance the drawing events of widgets, which may be necessary to avoid a crash when closing the application (e.g. if drawing the widget is required for some reason before closing it) or at least to ensure that test coverage includes all possible code paths.
โน๏ธ Other changes:
- Preparing for NumPy V2 compatibility: this is a work in progress, as NumPy V2 is not yet released. In the meantime, requirements have been updated to exclude NumPy V2.
- Internal package reorganization: moved icons to
guidata/data/iconsfolder - The
delaycommand line option for environment execution objectexecenvis now expressed in milliseconds (before it was in seconds), for practical reasons - Explicitely exclude NumPy V2 from the dependencies (not compatible yet)
- Python
Published by PierreRaybaut about 2 years ago
guidata - v3.5.0
In this release, test coverage is 74%.
๐ฅ New features:
- New Sphinx autodoc extension:
- Allows to document dataset classes and functions using Sphinx directives, thus generating a comprehensive documentation for datasets with labels, descriptions, default values, etc.
- The extension is available in the
guidata.dataset.autodocmodule - Directives:
autodataset: document a dataset classautodataset_create: document a dataset creation functiondatasetnote: add a note explaining how to use a dataset
BoolItem/TextItem: add support for callbacks when the item value changes
๐ ๏ธ Bug fixes:
- Documentation generation: automatic requirement table generation feature was failing
when using version conditions in the
pyproject.tomlfile (e.g.pyqt5 >= 5.15). - Issue #72 - unit test leave files during the build usr/lib/python3/dist-packages/test.json
- Issue #73 -
ChoiceItemradio buttons are duplicated when using callbacks
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.4.1
In this release, test coverage is 76%.
๐ ๏ธ Bug fixes:
- Issue #71 - Random segmentation faults with applications embedding
CodeEditor - Issue #70 - PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/guidata/tests/data/genreqs/requirements.rst'
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.4.0
In this release, test coverage is 76%.
๐ฅ New features:
* dataset.io.h5fmt.HDF5Reader.read method: added new default argument to set
default value for missing data in the HDF5 file (backward compatible). The default
value of default is NoDefault (a special value to indicate that no default value
should be used, and that an exception should be raised if the data is missing).
* widgets.codeeditor.CodeEditor: added new inactivity_timeout argument to set
the time (in milliseconds) to wait after the user has stopped typing before
emitting the CodeEditor.SIG_EDIT_STOPPED signal.
* Added execenv.accept_dialogs attribute to control whether dialogs should be
automatically accepted or not (default is None, meaning no automatic acceptance):
this allows more coverage of the test suite. For now, this attribute has only been
proven useful in tests/dataset/test_all_features.py.
* Added unit tests for HDF5 and JSON serialization/deserialization:
* Testing an arbitrary data model saved/loaded to/from HDF5 and JSON files,
with various data sets and other data types.
* Testing for backward compatibility with previous versions of the data model
(e.g. new attributes, removed attributes, etc.)
โ ๏ธ API breaking changes:
* guidata.dataset.io module is now deprecated and will be removed in a future
release. Please use guidata.io instead. This change is backward compatible
(the old module is still available and will be removed in a future release).
The motivation for this change is to simplify the module structure and to help
understand that the scope of the io module is not limited to dataset.DataSet
objects, but may be used for any kind of data serialization/deserialization.
๐ Documentation:
- Added missing
DataSetEditDialogandDataSetEditLayoutclasses - Added missing inheritance/member details on some classes
- Reduced table of contents depth in left sidebar for better readability
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.3.0
๐ฅ New features:
* Array editor now supports row/column insertion/deletion:
* Added variable_size argument to setup_and_check method
* The feature is disabled by default (backward compatible)
* It supports standard arrays, masked arrays, record arrays and N-dimensional arrays
* New dataset read-only mode:
* Added readonly argument to DataSet constructor
* This is useful to create a dataset that will be displayed in read-only mode
(e.g. string editing widgets will be in read-only mode: text will be selectable
but not editable)
* The items remain modifiable programmatically (e.g. dataset.item = 42)
* New dataset group edit mode:
* Added mode argument to DataSetGroup.edit method, with the following options:
* mode='tabs' (default): each dataset is displayed in a separate tab
* mode='table': all datasets are displayed in a single table
* In the new table mode, the datasets are displayed in a single table with
one row per dataset and one column per item
* Clicking on a row will display the corresponding dataset in a modal dialog box
๐ ๏ธ Bug fixes:
- Qt console:
- Fixed
RuntimeError: wrapped C/C++ object of type DockableConsole has been deletedwhen closing the console widget (parent widget, e.g. aQMainWindow, was deleted) while an output stream is still writing to the console (e.g. alogginghandler which will flush the output stream when closing the application) - This concerns all console-related widgets:
DockableConsole,Console,InternalShell,PythonShellWidgetandShellBaseWidget
- Fixed
- Code editor: fixed compatibility issue with PySide6
(
AttributeError: 'QFont' object has no attribute 'Bold')
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.2.2 - Maintenance release
Version 3.2.2
๐ ๏ธ Bug fixes:
- Fixed translation support (
gettext):- Locale detection has been fixed in 3.1.1 (deprecation of
locale.getdefaultlocale) - However, on frozen distributions on Windows (e.g. with
pyinstaller), functionlocale.getlocaleis returning(None, None)instead of proper locale infos - Added a workaround: on Windows, if locale can't be detected, we now use the
Windows API to retrieve it (using the
GetUserDefaultLocaleNamefunction) - Issue #68 - Windows: gettext translation is not working on frozen applications
- Locale detection has been fixed in 3.1.1 (deprecation of
- Embedded Qt console:
- Fixed default encoding detection on frozen applications on Windows
- Issue #69 - Windows/Qt console: output encoding is not detected on frozen applications
Version 3.2.1
๐ ๏ธ Bug fixes:
- Tests only:
qthelpers.close_widgets_and_quitnow ignores deleted widgets
๐ฅ Changes:
dataset.ImageChoiceItemanddataset.ButtonItem: addedsizeargument to set the icon sizedataset.ioreader and writer classes: removed deprecatedwrite_unicodemethod
Version 3.2.0
๐ ๏ธ Bug fixes:
- Issue #67 - JSONReader/Deserializing object list: TypeError: 'NoneType' object is not subscriptable
๐ฅ Changes:
qthelpers.qt_wait: addedshow_messageandparentarguments (backward compatible)qthelpers.qt_app_context: removedfaulthandlersupport (this need to be handled at the application level, see for example DataLab's implementation)- Disabled command line argument parsing in
guidata.envmodule:- The
guidatalibrary is parsing command line arguments for the purpose of creating the environment execution object namedexecenv(seeguidata.envmodule). This object is used to determine the execution environment mainly for testing purposes: for example, to bypass the Qt event loop when running tests thanks to the--unattendedcommand line option. - However this argument parsing is not always desirable, for example when using
guidataas a dependency in another library or application. This is why the parsing mechanism is now disabled by default, and may be enabled by setting the environment variableGUIDATA_PARSE_ARGSto1(or any other non-empty value). As of today, it is still unclear if there will be a need to enable this mechanism in the future, so this is why the environment variable is used instead of a function argument.
- The
- Removed deprecated
guidata.disthelpersmodule (we recommend using PyInstaller instead)
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.2.1 - Maintenance release
Version 3.2.1
๐ ๏ธ Bug fixes:
- Tests only:
qthelpers.close_widgets_and_quitnow ignores deleted widgets
๐ฅ Changes:
dataset.ImageChoiceItemanddataset.ButtonItem: addedsizeargument to set the icon sizedataset.ioreader and writer classes: removed deprecatedwrite_unicodemethod
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.2.0 - New release
Version 3.2.0
๐ ๏ธ Bug fixes:
- Issue #67 - JSONReader/Deserializing object list: TypeError: 'NoneType' object is not subscriptable
๐ฅ Changes:
qthelpers.qt_wait: addedshow_messageandparentarguments (backward compatible)qthelpers.qt_app_context: removedfaulthandlersupport (this need to be handled at the application level, see for example DataLab's implementation)- Disabled command line argument parsing in
guidata.envmodule:- The
guidatalibrary is parsing command line arguments for the purpose of creating the environment execution object namedexecenv(seeguidata.envmodule). This object is used to determine the execution environment mainly for testing purposes: for example, to bypass the Qt event loop when running tests thanks to the--unattendedcommand line option. - However this argument parsing is not always desirable, for example when using
guidataas a dependency in another library or application. This is why the parsing mechanism is now disabled by default, and may be enabled by setting the environment variableGUIDATA_PARSE_ARGSto1(or any other non-empty value). As of today, it is still unclear if there will be a need to enable this mechanism in the future, so this is why the environment variable is used instead of a function argument.
- The
- Removed deprecated
guidata.disthelpersmodule (we recommend using PyInstaller instead)
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.1.1 - Maintenance release
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)
- Before:
- Removed CHM documentation (obsolete format)
Version 3.1.0
โ Exceptionally, this release contains the following API breaking changes:
- Moved
utils.update_datasettodataset.conv.update_dataset - Moved
utils.restore_datasettodataset.conv.restore_dataset
โ API simplification (backward compatible):
- Dataset items may now be imported from
guidata.datasetinstead ofguidata.dataset.dataitems - Dataset types may now be imported from
guidata.datasetinstead ofguidata.dataset.datatypes Examples:
from guidata.dataset.dataitems import FloatItembecomesfrom guidata.dataset import FloatItemfrom guidata.dataset.datatypes import DataSetbecomesfrom guidata.dataset import DataSet- Or you may now write:
```python 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 items - New
dataset.create_dataset_from_func: create a dataset from a function signature, using type annotations and default values to create the dataset items dataset.dataitems.StringItem:- Added argument
passwordto hide text (useful for passwords) - Added argument
regexpto validate text using a regular expression
- Added argument
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
Version 3.0
See full changelog here.
- Python
Published by PierreRaybaut over 2 years ago
guidata - v3.1.0
guidata Releases
Version 3.1.0
โ Exceptionnally, this release contains the following API breaking changes:
- Moved
utils.update_datasettodataset.conv.update_dataset - Moved
utils.restore_datasettodataset.conv.restore_dataset
โ API simplification (backward compatible):
- Dataset items may now be imported from
guidata.datasetinstead ofguidata.dataset.dataitems - Dataset types may now be imported from
guidata.datasetinstead ofguidata.dataset.datatypes Examples:
from guidata.dataset.dataitems import FloatItembecomesfrom guidata.dataset import FloatItemfrom guidata.dataset.datatypes import DataSetbecomesfrom guidata.dataset import DataSet- Or you may now write:
```python 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 items - New
dataset.create_dataset_from_func: create a dataset from a function signature, using type annotations and default values to create the dataset items dataset.dataitems.StringItem:- Added argument
passwordto hide text (useful for passwords) - Added argument
regexpto validate text using a regular expression
- Added argument
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
Version 3.0
See full changelog here.
- Python
Published by PierreRaybaut almost 3 years ago
guidata - v3.0.6 - Maintenance release
Version 3.0.6
Bug fixes:
widgets.console.interpreter: replaced threading.Thread.isAlive (deprecated since Python 3.8)
Other changes:
DataSet.edit,DataSet.viewandDataSetGroup.edit: added missing argumentssizeandwordwrapDocumentation: added check-list before submitting a patch (see
contribute.rstfile)Fixed some typing annotations and docstrings, as well as Pylint false positives
Removed unused functions from
guidata.utils.encodingmodule:transcodegetfilesystemencoding
Added missing docstrings and typing annotations in modules:
guidata.dataset.qtitemwidgetsguidata.dataset.qtwidgetsguidata.utils.encodingguidata.utils.misc
Version 3.0
See full changelog here.
- Python
Published by PierreRaybaut almost 3 years ago
guidata - v3.0.5 - Fixed compatibility with PySide6
Version 3.0.5
Bug fixes:
- Issue #65 - QVariant import erroneously used in typing annotations
Other changes:
tests.test_callbacks: added an example of a callback function for dynamically changing the list of choices of aChoiceItemobject
Version 3.0
See full changelog here.
- Python
Published by PierreRaybaut almost 3 years ago
guidata - v3.0.3 - New major release
New major release:
- New BSD 3-Clause License
- Black code formatting on all Python files
- New automated test suite:
- Added module
guidata.envto handle execution environment - Added support for an "unattended" execution mode (Qt loop is bypassed)
- Added support for pytest fixtures
- Added support for coverage testing: 70% coverage to date
- Added module
- Documentation was entirely rewritten using Sphinx
- Reorganized modules:
- Moved
guidata.hd5iotoguidata.dataset.hdf5io - Moved
guidata.jsoniotoguidata.dataset.jsonio - Renamed
guidata.userconfigiotoguidata.dataset.iniio - New package
guidata.utilsfor utility functions: - Removed deprecated or unused functions in old
guidata.utilsmodule - Moved old
guidata.utilsmodule toguidata.utils.misc, except the functionsupdate_datasetandrestore_datasetwhich are still inguidata.utils(root module) - Moved
guidata.encodingtoguidata.utils.encoding - Moved
guidata.gettext_helperstoguidata.utils.gettext_helpers - Splitted
guidata.qtwidgetsin two modules: guidata.widgets.dockablefor dockable widgetsguidata.widgets.rotatedlabelfor rotated label
- Moved
- Other changes:
guidata.guitest:- Added support for subpackages
- New comment directive (
# guitest: show) to add test module to test suite or to show test module in test launcher (this replaces the oldSHOW = Trueline) guidata.dataset.datatypes.DataSet: newcreateclass method for concise dataset creation, allowing to create a dataset with a single line of code by passing default item values as keyword arguments
- Python
Published by PierreRaybaut almost 3 years ago
guidata - v3.0.1 - New major release
New major release:
- New BSD 3-Clause License
- Black code formatting on all Python files
- New automated test suite:
- Added module
guidata.envto handle execution environment - Added support for an "unattended" execution mode (Qt loop is bypassed)
- Added support for pytest fixtures
- Added support for coverage testing: 70% coverage to date
- Added module
- Documentation was entirely rewritten using Sphinx
- Reorganized modules:
- Moved
guidata.hd5iotoguidata.dataset.hdf5io - Moved
guidata.jsoniotoguidata.dataset.jsonio - Renamed
guidata.userconfigiotoguidata.dataset.iniio - New package
guidata.utilsfor utility functions: - Removed deprecated or unused functions in old
guidata.utilsmodule - Moved old
guidata.utilsmodule toguidata.utils.misc, except the functionsupdate_datasetandrestore_datasetwhich are still inguidata.utils(root module) - Moved
guidata.encodingtoguidata.utils.encoding - Moved
guidata.gettext_helperstoguidata.utils.gettext_helpers - Splitted
guidata.qtwidgetsin two modules: guidata.widgets.dockablefor dockable widgetsguidata.widgets.rotatedlabelfor rotated label
- Moved
- Other changes:
guidata.guitest:- Added support for subpackages
- New comment directive (
# guitest: show) to add test module to test suite or to show test module in test launcher (this replaces the oldSHOW = Trueline) guidata.dataset.datatypes.DataSet: newcreateclass method for concise dataset creation, allowing to create a dataset with a single line of code by passing default item values as keyword arguments
- Python
Published by PierreRaybaut almost 3 years ago
guidata - v3.0.0 - New major release
New major release:
- New BSD 3-Clause License
- Black code formatting on all Python files
- New automated test suite:
- Added module
guidata.envto handle execution environment - Added support for an "unattended" execution mode (Qt loop is bypassed)
- Added support for pytest fixtures
- Added support for coverage testing: 70% coverage to date
- Added module
- Documentation was entirely rewritten using Sphinx
- Reorganized modules:
- Moved
guidata.hd5iotoguidata.dataset.hdf5io - Moved
guidata.jsoniotoguidata.dataset.jsonio - Renamed
guidata.userconfigiotoguidata.dataset.iniio - New package
guidata.utilsfor utility functions: - Removed deprecated or unused functions in old
guidata.utilsmodule - Moved old
guidata.utilsmodule toguidata.utils.misc, except the functionsupdate_datasetandrestore_datasetwhich are still inguidata.utils(root module) - Moved
guidata.encodingtoguidata.utils.encoding - Moved
guidata.gettext_helperstoguidata.utils.gettext_helpers - Splitted
guidata.qtwidgetsin two modules: guidata.widgets.dockablefor dockable widgetsguidata.widgets.rotatedlabelfor rotated label
- Moved
- Other changes:
guidata.guitest:- Added support for subpackages
- New comment directive (
# guitest: show) to add test module to test suite or to show test module in test launcher (this replaces the oldSHOW = Trueline) guidata.dataset.datatypes.DataSet: newcreateclass method for concise dataset creation, allowing to create a dataset with a single line of code by passing default item values as keyword arguments
- Python
Published by PierreRaybaut about 3 years ago
guidata - v2.3.1: Fixed compatibility with Python 3.11
- Python
Published by PierreRaybaut over 3 years ago
guidata - Added Python 3.10, QtPy 2.0 support (dropped Python 2 support)
Full Changelog: https://github.com/PierreRaybaut/guidata/compare/v1.8.0...v2.0.1
- Python
Published by PierreRaybaut over 4 years ago
guidata - PySide2 support
This release adds PySide2 support.
- Python
Published by PierreRaybaut almost 6 years ago
guidata - Maintenance release
Added compatibility with Spyder v4 + improved compatibility with PyQt5.
- Python
Published by PierreRaybaut almost 6 years ago
guidata -
Fixed Spyder v3.0 compatibility issue
- Python
Published by PierreRaybaut almost 10 years ago