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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
e324aaf4
Verified
Commit
e324aaf4
authored
9 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Better generated CFood.yaml
parent
e5b11b26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!176
misc. small changes
Pipeline
#52452
passed
9 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/scripts/generators.py
+11
-1
11 additions, 1 deletion
src/caoscrawler/scripts/generators.py
with
11 additions
and
1 deletion
src/caoscrawler/scripts/generators.py
+
11
−
1
View file @
e324aaf4
...
...
@@ -104,17 +104,27 @@ metadata:
directory: # corresponds to the directory given to the crawler
type: Directory
match: .* # we do not care how it is named here
records:
DirRecord: # One record for each directory.
subtree:
# This is the file
thisfile:
type: []{file}
match: []{match}
records:
DatFileRecord: # One record for each matching file
role: File
path: $thisfile
file: $thisfile
subtree:
entry:
type: Dict
match: .* # Name is irrelevant
records:
MyParent:
BaseElement: # One BaseElement record for each row in the CSV/TSV file
DatFileRecord: $DatFileRecord
DirRecord:
BaseElement: +$BaseElement
subtree: !macro
"""
...
...
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