Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
e472c865
Commit
e472c865
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: enhanced documentation
parent
d9164599
No related branches found
No related tags found
2 merge requests
!71
REL: RElease v0.2.0
,
!64
ENH: Using float converters on integer values
Pipeline
#30541
passed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
src/doc/converters.rst
+10
-7
10 additions, 7 deletions
src/doc/converters.rst
with
15 additions
and
7 deletions
CHANGELOG.md
+
5
−
0
View file @
e472c865
...
...
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ###
-
Converters often used in dicts (DictFloatElementConverter,
DictIntegerElementConverter, ...) do now accept other StructureElements by
default. For example a DictIntegerElement is accepted by default instead of a
DictFloatElement. This behavior can be changed (see converter documentation).
**Note**
This might lead to additional matches compared to previous versions.
-
`_AbstractDictElementConverter`
uses
`re.DOTALL`
for
`match_value`
-
The "fallback" parent, the name of the element in the cfood, is only used
when the object is created and only if there are no parents given.
...
...
This diff is collapsed.
Click to expand it.
src/doc/converters.rst
+
10
−
7
View file @
e472c865
...
...
@@ -77,13 +77,6 @@ Dict Converter
Typical Subtree converters
--------------------------
- DictBooleanElementConverter
- DictFloatElementConverter
- DictTextElementConverter
- DictIntegerElementConverter
- DictListElementConverter
- DictDictElementConverter
These converters expect `match_name` and `match_value` in their definition
which allow to match the key and the value, respectively.
...
...
@@ -92,6 +85,16 @@ DictFloatElementConverter also accepts DictIntegerElements. The default
behavior can be adjusted with the fields `accept_text`, `accept_int`,
`accept_float`, and `accept_bool`.
The following denotes what kind of StructureElements are accepted by default
(they are defined in `src/caoscrawler/converters.py`):
- DictBooleanElementConverter: bool, int
- DictFloatElementConverter: int, float
- DictTextElementConverter: text, bool, int, float
- DictIntegerElementConverter: int
- DictListElementConverter: list
- DictDictElementConverter: dict
YAMLFileConverter
=================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment