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
fbd62d8b
Commit
fbd62d8b
authored
2 years ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
DOC: added a section about the converters to the documentation
parent
91c181ee
No related branches found
No related tags found
2 merge requests
!53
Release 0.1
,
!42
F doc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doc/index.rst
+90
-7
90 additions, 7 deletions
src/doc/index.rst
with
90 additions
and
7 deletions
src/doc/index.rst
+
90
−
7
View file @
fbd62d8b
...
@@ -72,17 +72,12 @@ converter-name:
...
@@ -72,17 +72,12 @@ converter-name:
- Experiment
- Experiment
- Blablabla
- Blablabla
date: $DATUM
date: $DATUM
<
...
>
(
...
)
Experiment2:
Experiment2:
parents:
parents:
- Experiment
- Experiment
valuegenerators:
datepattern:
<...>
childrengenerators:
create_children_from_directory:
sort-by-date: true
subtree:
subtree:
(...)
records:
records:
...
@@ -134,6 +129,94 @@ valuegenerators shall be defined, the keyword may be omitted.
...
@@ -134,6 +129,94 @@ valuegenerators shall be defined, the keyword may be omitted.
Relevant sources in:
Relevant sources in:
src/converters.py
src/converters.py
Standard Converters
+++++++++++++++++++
Directory Converter
====================
Simple File Converter
====================
Markdown File Converter
====================
Dict Converter
====================
Typical Subtree converters
---------------
DictBooleanElementConverter
DictFloatElementConverter
DictTextElementConverter
DictIntegerElementConverter
DictListElementConverter
DictDictElementConverter
YAMLFileConverter
=================
A specialized Dict Converter for yaml files: Yaml files are opened and the contents are
converted into dictionaries that can be further converted using the typical subtree converters
of dict converter.
**WARNING**: Currently unfinished implementation.
JSONFileConverter
=================
TextElementConverter
TableConverter
=================
A generic converter (abstract) for files containing tables.
Currently, there are two specialized implementations for xlsx-files and csv-files.
All table converters generate a subtree that can be converted with DictDictElementConverters:
For each row in the table a DictDictElement (structure element) is generated. The key of the
element is the row number. The value of the element is a dict containing the mapping of
column names to values of the respective cell.
Example:
.. code-block:: yaml
subtree:
TABLE:
type: CSVTableConverter
match: ^test_table.csv$
records:
(...) # Records edited for the whole table file
subtree:
ROW:
type: DictDictElement
match_name: .*
match_value: .*
records:
(...) # Records edited for each row
subtree:
COLUMN:
type: DictFloatElement
match_name: measurement # Name of the column in the table file
match_value: (?P<column_value).*)
records:
(...) # Records edited for each cell
XLSXTableConverter
=================
CSVTableConverter
=================
Custom Converters
+++++++++++++++++
Identifiables
Identifiables
+++++++++++++
+++++++++++++
...
...
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