You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IN_PATHS: 'pipe/enviroscan/site-list.json'# Comma-separated list (no spaces) to one or more paths or directories. Length must match OUT_PATHS. If directory, all files in directory will be placed in pachyderm at corresponding entry of OUT_PATHS.
19
+
OUT_PATHS: 'site-list.json'# Comma-separated list (no spaces) of corresponding path(s) to place the files(s) in Pachyderm. Must be same length as IN_PATHS. If corresponding entry in IN_PATHS is a file, specify to the file. If corresponding entry in IN_PATHS is a directory, specify to the directory.
Copy file name to clipboardExpand all lines: modules/array_parser/schema_parser.py
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,31 +8,39 @@ class SchemaData(NamedTuple):
8
8
schema: str
9
9
source_type: str
10
10
field_names: List[str]
11
-
mapping: dict
11
+
parse_field_names: List[str]
12
+
calibration_mapping: dict
13
+
data_mapping: dict
12
14
13
15
14
16
defparse_schema_file(path: Path) ->SchemaData:
15
17
"""
16
-
Get the mapping between stream IDs and schema field names.
18
+
Get the mapping between stream IDs and schema field names for any applicable calibration data
19
+
Also get the mapping between schema field names and array names
17
20
18
21
:param path: The file path.
19
-
:return: The source name and the mapping between stream IDs and schema field names.
22
+
:return: The source name and the mapping between stream IDs -> schema field names, and schema field names -> array names (i.e. which array they are in)
0 commit comments