yamlfile.py¶
Bases: object
Config file in YAML format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
str
|
The filespec of the YAML file to read |
required |
Returns:
Type | Description |
---|---|
YamlFile
|
An instance of this object |
Source code in osm_fieldwork/yamlfile.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
privateData ¶
privateData(keyword)
See if a keyword is in the private data category.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
str
|
The keyword to search for |
required |
Returns:
Type | Description |
---|---|
bool
|
Check to see if the keyword is in the private data section |
Source code in osm_fieldwork/yamlfile.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
ignoreData ¶
ignoreData(keyword)
See if a keyword is in the ignore data category.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
str
|
The keyword to search for |
required |
Returns:
Type | Description |
---|---|
bool
|
Check to see if the keyword is in the ignore data section |
Source code in osm_fieldwork/yamlfile.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
convertData ¶
convertData(keyword)
See if a keyword is in the convert data category.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
str
|
The keyword to search for |
required |
Returns:
Type | Description |
---|---|
bool
|
Check to see if the keyword is in the convert data section |
Source code in osm_fieldwork/yamlfile.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
dump ¶
dump()
Dump internal data structures, for debugging purposes only.
Source code in osm_fieldwork/yamlfile.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
write ¶
write(table)
Add to the YAML file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
table
|
list
|
The name of the database table |
required |
Returns:
Type | Description |
---|---|
str
|
The modified YAML data |
Source code in osm_fieldwork/yamlfile.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
|
options: show_source: false heading_level: 3