Skip to content

Commit

Permalink
deploy: 534bfd4
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaasRostock committed Nov 14, 2024
0 parents commit 1c9958c
Show file tree
Hide file tree
Showing 664 changed files with 217,088 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 49744bb105ad9761e5d9b30444d9216c
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added .nojekyll
Empty file.
1,178 changes: 1,178 additions & 0 deletions CHANGELOG.html

Large diffs are not rendered by default.

1,121 changes: 1,121 additions & 0 deletions CHANGELOG_dictIO.html

Large diffs are not rendered by default.

1,196 changes: 1,196 additions & 0 deletions CHANGELOG_farn.html

Large diffs are not rendered by default.

1,239 changes: 1,239 additions & 0 deletions CHANGELOG_ospx.html

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions LICENSE.html

Large diffs are not rendered by default.

735 changes: 735 additions & 0 deletions README.html

Large diffs are not rendered by default.

754 changes: 754 additions & 0 deletions README_dictIO.html

Large diffs are not rendered by default.

753 changes: 753 additions & 0 deletions README_farn.html

Large diffs are not rendered by default.

736 changes: 736 additions & 0 deletions README_ospx.html

Large diffs are not rendered by default.

990 changes: 990 additions & 0 deletions STYLEGUIDE.html

Large diffs are not rendered by default.

679 changes: 679 additions & 0 deletions _autosummary/dictIO.cpp_dict.CppDict.html

Large diffs are not rendered by default.

550 changes: 550 additions & 0 deletions _autosummary/dictIO.cpp_dict.html

Large diffs are not rendered by default.

997 changes: 997 additions & 0 deletions _autosummary/dictIO.dict.SDict.html

Large diffs are not rendered by default.

547 changes: 547 additions & 0 deletions _autosummary/dictIO.dict.html

Large diffs are not rendered by default.

622 changes: 622 additions & 0 deletions _autosummary/dictIO.dict_parser.DictParser.html

Large diffs are not rendered by default.

547 changes: 547 additions & 0 deletions _autosummary/dictIO.dict_parser.html

Large diffs are not rendered by default.

619 changes: 619 additions & 0 deletions _autosummary/dictIO.dict_reader.DictReader.html

Large diffs are not rendered by default.

547 changes: 547 additions & 0 deletions _autosummary/dictIO.dict_reader.html

Large diffs are not rendered by default.

612 changes: 612 additions & 0 deletions _autosummary/dictIO.dict_writer.DictWriter.html

Large diffs are not rendered by default.

600 changes: 600 additions & 0 deletions _autosummary/dictIO.dict_writer.html

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions _autosummary/dictIO.formatter.FoamFormatter.html

Large diffs are not rendered by default.

989 changes: 989 additions & 0 deletions _autosummary/dictIO.formatter.Formatter.html

Large diffs are not rendered by default.

663 changes: 663 additions & 0 deletions _autosummary/dictIO.formatter.JsonFormatter.html

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions _autosummary/dictIO.formatter.NativeFormatter.html

Large diffs are not rendered by default.

696 changes: 696 additions & 0 deletions _autosummary/dictIO.formatter.XmlFormatter.html

Large diffs are not rendered by default.

559 changes: 559 additions & 0 deletions _autosummary/dictIO.formatter.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/dictIO.parser.FoamParser.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/dictIO.parser.JsonParser.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/dictIO.parser.NativeParser.html

Large diffs are not rendered by default.

770 changes: 770 additions & 0 deletions _autosummary/dictIO.parser.Parser.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/dictIO.parser.XmlParser.html

Large diffs are not rendered by default.

559 changes: 559 additions & 0 deletions _autosummary/dictIO.parser.html

Large diffs are not rendered by default.

537 changes: 537 additions & 0 deletions _autosummary/dictIO.types.html

Large diffs are not rendered by default.

610 changes: 610 additions & 0 deletions _autosummary/dictIO.utils.counter.BorgCounter.html

Large diffs are not rendered by default.

625 changes: 625 additions & 0 deletions _autosummary/dictIO.utils.counter.DejaVue.html

Large diffs are not rendered by default.

628 changes: 628 additions & 0 deletions _autosummary/dictIO.utils.counter.Indenter.html

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions _autosummary/dictIO.utils.counter.html

Large diffs are not rendered by default.

650 changes: 650 additions & 0 deletions _autosummary/dictIO.utils.dict.html

Large diffs are not rendered by default.

559 changes: 559 additions & 0 deletions _autosummary/dictIO.utils.html

Large diffs are not rendered by default.

587 changes: 587 additions & 0 deletions _autosummary/dictIO.utils.logging.html

Large diffs are not rendered by default.

613 changes: 613 additions & 0 deletions _autosummary/dictIO.utils.path.html

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions _autosummary/dictIO.utils.strings.html

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions _autosummary/farn.core.case.Case.html

Large diffs are not rendered by default.

666 changes: 666 additions & 0 deletions _autosummary/farn.core.case.CaseStatus.html

Large diffs are not rendered by default.

696 changes: 696 additions & 0 deletions _autosummary/farn.core.case.Cases.html

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions _autosummary/farn.core.case.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/farn.core.html

Large diffs are not rendered by default.

623 changes: 623 additions & 0 deletions _autosummary/farn.core.parameter.Parameter.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.core.parameter.html

Large diffs are not rendered by default.

760 changes: 760 additions & 0 deletions _autosummary/farn.farn.html

Large diffs are not rendered by default.

602 changes: 602 additions & 0 deletions _autosummary/farn.run.batchProcess.AsyncBatchProcessor.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.run.batchProcess.html

Large diffs are not rendered by default.

572 changes: 572 additions & 0 deletions _autosummary/farn.run.cli.batchProcess.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.run.cli.html

Large diffs are not rendered by default.

555 changes: 555 additions & 0 deletions _autosummary/farn.run.html

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions _autosummary/farn.run.subProcess.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.run.utils.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/farn.run.utils.threading.JobQueue.html

Large diffs are not rendered by default.

636 changes: 636 additions & 0 deletions _autosummary/farn.run.utils.threading.Worker.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/farn.run.utils.threading.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.sampling.html

Large diffs are not rendered by default.

639 changes: 639 additions & 0 deletions _autosummary/farn.sampling.sampling.DiscreteSampling.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/farn.sampling.sampling.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/farn.utils.html

Large diffs are not rendered by default.

590 changes: 590 additions & 0 deletions _autosummary/farn.utils.logging.html

Large diffs are not rendered by default.

571 changes: 571 additions & 0 deletions _autosummary/farn.utils.os.html

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions _autosummary/ospx.component.Component.html

Large diffs are not rendered by default.

605 changes: 605 additions & 0 deletions _autosummary/ospx.component.RemoteAccess.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/ospx.component.html

Large diffs are not rendered by default.

642 changes: 642 additions & 0 deletions _autosummary/ospx.connection.Connection.html

Large diffs are not rendered by default.

662 changes: 662 additions & 0 deletions _autosummary/ospx.connection.Endpoint.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/ospx.connection.html

Large diffs are not rendered by default.

691 changes: 691 additions & 0 deletions _autosummary/ospx.connector.Connector.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.connector.html

Large diffs are not rendered by default.

624 changes: 624 additions & 0 deletions _autosummary/ospx.fmi.experiment.Experiment.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.fmi.experiment.html

Large diffs are not rendered by default.

688 changes: 688 additions & 0 deletions _autosummary/ospx.fmi.fmu.FMU.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.fmi.fmu.html

Large diffs are not rendered by default.

555 changes: 555 additions & 0 deletions _autosummary/ospx.fmi.html

Large diffs are not rendered by default.

680 changes: 680 additions & 0 deletions _autosummary/ospx.fmi.unit.BaseUnit.html

Large diffs are not rendered by default.

616 changes: 616 additions & 0 deletions _autosummary/ospx.fmi.unit.DisplayUnit.html

Large diffs are not rendered by default.

615 changes: 615 additions & 0 deletions _autosummary/ospx.fmi.unit.Unit.html

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions _autosummary/ospx.fmi.unit.html

Large diffs are not rendered by default.

628 changes: 628 additions & 0 deletions _autosummary/ospx.fmi.variable.ScalarVariable.html

Large diffs are not rendered by default.

594 changes: 594 additions & 0 deletions _autosummary/ospx.fmi.variable.html

Large diffs are not rendered by default.

591 changes: 591 additions & 0 deletions _autosummary/ospx.graph.Graph.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.graph.html

Large diffs are not rendered by default.

609 changes: 609 additions & 0 deletions _autosummary/ospx.importer.OspSystemStructureImporter.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.importer.html

Large diffs are not rendered by default.

615 changes: 615 additions & 0 deletions _autosummary/ospx.ospCaseBuilder.OspCaseBuilder.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.ospCaseBuilder.html

Large diffs are not rendered by default.

647 changes: 647 additions & 0 deletions _autosummary/ospx.ospSimulationCase.OspSimulationCase.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.ospSimulationCase.html

Large diffs are not rendered by default.

633 changes: 633 additions & 0 deletions _autosummary/ospx.simulation.Simulation.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.simulation.html

Large diffs are not rendered by default.

699 changes: 699 additions & 0 deletions _autosummary/ospx.system.System.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.system.html

Large diffs are not rendered by default.

591 changes: 591 additions & 0 deletions _autosummary/ospx.utils.dateTime.html

Large diffs are not rendered by default.

603 changes: 603 additions & 0 deletions _autosummary/ospx.utils.dict.html

Large diffs are not rendered by default.

558 changes: 558 additions & 0 deletions _autosummary/ospx.utils.html

Large diffs are not rendered by default.

587 changes: 587 additions & 0 deletions _autosummary/ospx.utils.logging.html

Large diffs are not rendered by default.

603 changes: 603 additions & 0 deletions _autosummary/ospx.utils.plotting.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/ospx.utils.zip.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.watch.cli.html

Large diffs are not rendered by default.

572 changes: 572 additions & 0 deletions _autosummary/ospx.watch.cli.watchCosim.html

Large diffs are not rendered by default.

549 changes: 549 additions & 0 deletions _autosummary/ospx.watch.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions _autosummary/ospx.watch.watchCosim.CosimWatcher.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _autosummary/ospx.watch.watchCosim.html

Large diffs are not rendered by default.

Binary file added _images/demoCase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions _sources/CHANGELOG.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```{include} ../../CHANGELOG.md
```
370 changes: 370 additions & 0 deletions _sources/CHANGELOG_dictIO.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
# dictIO

All notable changes to the [dictIO] project will be documented in this file.<br>
The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

-/-


## [0.4.0] - 2024-11-11

### Breaking changes
* Renamed modules: Following modules have been renamed in order to comply with PEP8 naming conventions: <br>
`dictIO.dictReader` **->** `dictIO.dict_reader` <br>
`dictIO.dictWriter` **->** `dictIO.dict_writer` <br>
`dictIO.dictParser` **->** `dictIO.dict_parser` <br>
`dictIO.cppDict` **->** `dictIO.cpp_dict` <br>
* Module `formatter.py` : <br>
Renamed `Formatter.format_type()` **->** `Formatter.format_value()` <br>
* Module `parser.py` : <br>
Renamed `Parser.parse_type()` **->** `Parser.parse_value()` <br>
Renamed `Parser.parse_types()` **->** `Parser.parse_values()` <br>
* class `CppDict` in module `dictIO.cppDict` has been replaced with the new class `SDict[K, V]` in module `dictIO.dict`. <br>
In order to maintain backward compatibility, a thin wrapper class named `CppDict` is kept in version ~0.4.0.
It is marked as deprecated, though, and will be removed with release 0.5.0.
* Where `CppDict` inherited from `UserDict`, `SDict` inherits directly from Python's `dict` class,
allowing to use it in any context where a `dict` or any other `MutableMapping` is expected.
* `SDict` is generic: Static type checkers will hence require type arguments when `SDict` is used. <br>
Where in dictIO < 0.4.0 you could write <br>
`my_dict: CppDict = CppDict()`, <br>
you will now need to specify the type arguments, e.g. <br>
`my_dict: SDict[str, Any] = SDict()`. <br>
With this change, type hinting is in line with how Python's builtin `dict` class works, and offers more control in static type checking.

### Changed
* Changed from `pip`/`tox` to `uv` as package manager
* README.md : Completely rewrote section "Development Setup", introducing `uv` as package manager.
* Changed publishing workflow to use OpenID Connect (Trusted Publisher Management) when publishing to PyPI
* Updated copyright statement
* VS Code settings: Turned off automatic venv activation
* Replaced black formatter with ruff formatter

### Solved
* Sphinx documentation: Resolved issue that documentation of class members was generated twice.

### Added
* Sphinx documentation: Added extension to support Markdown-based diagrams created with Mermaid.
* Added instance methods `dump()` and `load()` to `SDict`
* Added `mypy` as static type checker (in addition to `pyright`)

### GitHub workflows
* (all workflows): Adapted to use `uv` as package manager
* _test_future.yml : updated Python version to 3.13.0-alpha - 3.13.0
* _test_future.yml : updated name of test job to 'test313'

### Dependencies
* Updated to ruff>=0.6.3 (from ruff==0.4.2)
* Updated to pyright>=1.1.378 (from pyright==1.1.360)
* Updated to sourcery>=1.22 (from sourcery==1.16)
* Updated to pytest>=8.3 (from pytest>=8.2)
* Updated to Sphinx>=8.0 (from Sphinx>=7.3)
* Updated to sphinx-argparse-cli>=1.17 (from sphinx-argparse-cli>=1.16)
* Updated to myst-parser>=4.0 (from myst-parser>=3.0)
* Updated to furo>=2024.8 (from furo>=2024.5)
* updated to setup-python@v5 (from setup-python@v4)
* updated to actions-gh-pages@v4 (from actions-gh-pages@v3)
* updated to upload-artifact@v4 (from upload-artifact@v3)
* Updated to download-artifact@v4 (from download-artifact@v3)
* updated to checkout@v4 (from checkout@v3)


## [0.3.4] - 2024-05-22

### Dependencies
* updated to ruff==0.4.2 (from ruff==0.2.1)
* updated to pyright==1.1.360 (from pyright==1.1.350)
* updated to sourcery==1.16 (from sourcery==1.15)
* updated to lxml>=5.2 (from lxml>=5.1)
* updated to types-lxml>=2024.4 (from types-lxml>=5.1)
* updated to pytest>=8.2 (from pytest>=7.4)
* updated to pytest-cov>=5.0 (from pytest-cov>=4.1)
* updated to Sphinx>=7.3 (from Sphinx>=7.2)
* updated to sphinx-argparse-cli>=1.15 (from sphinx-argparse-cli>=1.11)
* updated to myst-parser>=3.0 (from myst-parser>=2.0)
* updated to furo>=2024.4 (from furo>=2023.9.10)
* updated to numpy>=1.26,<2.0 (from numpy>=1.26)
* removed black

### Changed
* replaced black formatter with ruff formatter
* Changed publishing workflow to use OpenID Connect (Trusted Publisher Management) when publishing to PyPI
* Updated copyright statement
* VS Code settings: Turned off automatic venv activation


## [0.3.3] - 2024-02-21

### Hotfix
* corrected name of cli script (wrong: dictIO correct: dictParser)


## [0.3.2] - 2024-02-21

### Added
* README.md : Under `Development Setup`, added a step to install current package in "editable" mode, using the pip install -e option.
This removes the need to manually add /src to the PythonPath environment variable in order for debugging and tests to work.

### Removed
* VS Code settings: Removed the setting which added the /src folder to PythonPath. This is no longer necessary. Installing the project itself as a package in "editable" mode, using the pip install -e option, solves the issue and removes the need to manually add /src to the PythonPath environment variable.

### Changed
* Moved all project configuration from setup.cfg to pyproject.toml
* Moved all tox configuration from setup.cfg to tox.ini.
* Moved pytest configuration from pyproject.toml to pytest.ini
* Deleted setup.cfg

### Dependencies
* updated to black[jupyter]==24.1 (from black[jupyter]==23.12)
* updated to version: '==24.1' (from version: '==23.12')
* updated to ruff==0.2.1 (from ruff==0.1.8)
* updated to pyright==1.1.350 (from pyright==1.1.338)
* updated to sourcery==1.15 (from sourcery==1.14)
* updated to lxml>=5.1 (from lxml>=4.9)


## [0.3.1] - 2024-01-09

### Solved

* Solved a bug that led to single character references not being identified
(solves [#14](https://github.com/dnv-opensource/dictIO/issues/14)).


## [0.3.0] - 2024-01-08

### Changed

* Enabled recognition of strings with nested quotes in it (solves [#2](https://github.com/dnv-opensource/dictIO/issues/2))
* GitHub workflows: Included Python 3.12 release version as standard, and Python 3.13.0a2 as "future" test.

### Dependencies

* updated to black[jupyter]==23.12 (from black[jupyter]==23.11)
* updated to ruff==0.1.8 (from ruff==0.1.6)
* updated to pyright==1.1.338 (from pyright==1.1.336)


## [0.2.9] - 2023-09-20

### Dependencies

* Updated dependencies to latest versions


## [0.2.8] - 2023-06-22

### Changed

* Modularized GitHub workflows
* Changed default Python version in GitHub workflows from 3.10 to 3.11

### Dependencies

* requirements-dev.txt: Updated dependencies to latest versions


## [0.2.7] - 2023-05-04

### Changed

* dependencies: updated dependencies to latest versions
* ruff: added rule-set "B" (flake8-bugbear)


## [0.2.6] - 2023-01-11

### Changed

* Added missing DocStrings for public classes, methods and functions
* Changed links to package documentation to open README.html, not the default index page


## [0.2.5] - 2023-01-04

### Changed

* Linter: Migrated from flake8 to ruff. <br>
(Added ruff; removed flake8 and isort)
* Adjusted GitHub CI workflow accordingly. <br>
(Added ruff job; removed flake8 and isort jobs)
* VS Code settings: Adjusted Pylance configuration
* Sphinx documentation: Rebuilt API documentation

### Added

* Added a batch file 'qa.bat' in root folder to ease local execution of code quality checks


## [0.2.4] - 2022-12-12

### Changed

* Moved dev-only dependencies from requirements.txt to requirements-dev.txt
* dictIO/`__utils__`.py : ensured that imported symbols get also exported <br>
(added "as" clause -> "from x import y as y" instead of only "from x import y")
* Configured code quality tools flake8, black, isort, pyright
* Improved code quality, resolving all warnings and errors flagged by the configured code quality tools
(flake8, black, isort, pyright, sourcery)

### Added

* Added support for selected numpy functions (diag, eye, ones, zeros)
which can now be used in expressions. <br>
This is an experimental feature which might be removed or changed in future.
* Added GitHub workflow 'main.yml' for continuous integration (runs all CI tasks except Sphinx)
* format checks: black, isort
* lint check: flake8, flake8-bugbear
* type check: pyright
* test: uses tox to run pytest on {Windows, Linux, MacOS} with {py39, py310}
* publish: publishing to PyPI (runs only on push of new tag vx.x.x, and after all other jobs succeeded)
* merge_to_release_branch: merge tagged commit to release branch (runs after publish)


## [0.2.3] - 2022-12-01

### Changed

* Code formatting: Changed from yapf to black
* STYLEGUIDE.md : Adjusted to match black formatting
* VS Code settings: Updated to use black as formatter
* requirements.txt: Updated dependencies to their most recent versions
* GitHub actions (yml files): Updated following actions to their most recent versions:
* checkout@v1 -> checkout@v3
* setup-python@v2 -> setup-python@v4
* cache@v2 -> cache@v3

### Added

* Added sourcery configuration (.sourcery.yaml)
* Added py.typed file into the package root folder and included it setup.cfg as package_data
* Documentation: Included sub-package dictIO.utils in documentation


## [0.2.2] - 2022-11-08

### Added

* JsonParser: JsonParser now supports the usage of references and expressions, similar to the CppParser.

## [0.2.1] - 2022-10-13

### Solved

* XmlParser: Solved a bug where default namespaces in an XML file would not be parsed correctly.

## [0.2.0] - 2022-09-29

### Added

* dictIO.utils.path.py: Added two new functions
* highest_common_root_folder(paths)
* relative_path(from_path, to_path)

### Changed

* Replaced usages of pathlib.Path.resolve_to() with dictIO.utils.path.relative_path()

### Removed

* dictIO.utils.path.py: Removed obsolete function silent_remove()


## [0.1.2] - 2022-09-27

### Solved

* XmlParser: Changed how empty XML nodes get parsed. <br>
The value for an empty node is now saved as an empty dict, i.e. {}, instead of None.
This change solves [issue #4](https://github.com/dnv-opensource/dictIO/issues/4).<br>
Problem was that None is not iterable, and code such as the following had caused an exception:
~~~py
if '_attributes' in my_parsed_xml_dict[node_key]:
...
~~~
because my_parsed_xml_dict[node_key] had been None.

Now, with the code change in place, my_parsed_xml_dict[node_key] would resolve to an empty dict ( {} ) instead of to None. As a dict is formally iterable (even when empty), querying code as above does no longer crash.


## [0.1.1] - 2022-08-19

### Added

* cppDict:
* Added method include(dict_to_include).
This method adds an include directive for the passed in dict inside the dict the method is called on.


## [0.1.0] - 2022-05-28

### Changed

* Simplified imports from namespace dictIO. Example:
* Old (<= v0.0.22):
~~~py
from dictIO.dictParser import DictParser
~~~
* New:
~~~py
from dictIO import DictParser
~~~

* parser.py
* Parser.remove_quotes_from_string()
* Changed default of 'all' argument from True to False<br>
This change was introduced in order to, by default, protect inner quotes in i.e. a farn filter expression "var in ['item1', 'item2']" from being removed.

* CppParser._parse_tokenized_dict()
* Changed implementation of the conditional code where a key value pair gets parsed.<br>
This change was introduced in order to better identify invalid key value pairs.<br>
Two invalid keys were added in test_parser_dict (section 'invalid') and a respective test was added.

* formatter.py
* JsonFormatter.insert_includes()
* Changed correction of backslashes, so that backslashes in include paths are not substituted by forwardslashes but actually escaped in Json compliant way.

* dictWriter.py
* DictWriter.write()
* Changed default of 'mode' argument from 'w' (overwrite) to 'a' (append)

* utils\strings.py
* plural() function moved to farn package (-> moved into utils\logging.py module in farn)<br>
It was moved since the plural() function is currently used in farn logging only (neither in dictIO nor in ospx).


## [0.0.22] - 2022-05-09

* First public release

## [0.0.17] - 2022-02-14

### Added

* Added support for Python 3.10

<!-- Markdown link & img dfn's -->
[unreleased]: https://github.com/dnv-opensource/dictIO/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/dnv-opensource/dictIO/compare/v0.3.4...v0.4.0
[0.3.4]: https://github.com/dnv-opensource/dictIO/compare/v0.3.3...v0.3.4
[0.3.3]: https://github.com/dnv-opensource/dictIO/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/dnv-opensource/dictIO/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/dnv-opensource/dictIO/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/dnv-opensource/dictIO/compare/v0.2.9...v0.3.0
[0.2.9]: https://github.com/dnv-opensource/dictIO/compare/v0.2.8...v0.2.9
[0.2.8]: https://github.com/dnv-opensource/dictIO/compare/v0.2.7...v0.2.8
[0.2.7]: https://github.com/dnv-opensource/dictIO/compare/v0.2.6...v0.2.7
[0.2.6]: https://github.com/dnv-opensource/dictIO/compare/v0.2.5...v0.2.6
[0.2.5]: https://github.com/dnv-opensource/dictIO/compare/v0.2.4...v0.2.5
[0.2.4]: https://github.com/dnv-opensource/dictIO/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/dnv-opensource/dictIO/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/dnv-opensource/dictIO/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/dnv-opensource/dictIO/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/dnv-opensource/dictIO/compare/v0.1.2...v0.2.0
[0.1.2]: https://github.com/dnv-opensource/dictIO/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/dnv-opensource/dictIO/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/dnv-opensource/dictIO/compare/v0.0.22...v0.1.0
[0.0.22]: https://github.com/dnv-opensource/dictIO/compare/v0.0.17...v0.0.22
[0.0.17]: https://github.com/dnv-opensource/dictIO/releases/tag/v0.0.17
[dictIO]: https://github.com/dnv-opensource/dictIO
Loading

0 comments on commit 1c9958c

Please sign in to comment.