Skip to content
Snippets Groups Projects
Commit f17befaa authored by Alexander Schlemmer's avatar Alexander Schlemmer Committed by Alexander Schlemmer
Browse files

DOC: more enhancements

parent fbd62d8b
No related branches found
No related tags found
2 merge requests!53Release 0.1,!42F doc
...@@ -267,3 +267,39 @@ to the variables like: ...@@ -267,3 +267,39 @@ to the variables like:
type: DictTextElement type: DictTextElement
match_value: (?P<description>.*) match_value: (?P<description>.*)
match_name: description match_name: description
Scopes
========
Example:
.. code-block:: yaml
DicomFile:
type: SimpleDicomFile
match: (?P<filename>.*)\.dicom
records:
DicomRecord:
name: $filename
subtree: # header of dicom file
PatientID:
type: DicomHeaderElement
match_name: PatientName
match_value: (?P<patient>.*)
records:
Patient:
name: $patient
dicom_name: $filename # $filename is in same scope!
ExperimentFile:
type: MarkdownFile
match: ^readme.md$
records:
Experiment:
dicom_name: $filename # does NOT work, because $filename is out of scope!
# can variables be used within regexp?
File Objects
============
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment