-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTODO.txt
90 lines (74 loc) · 3.79 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Functions decorated with @dctap_defaults:
---------------------------------------------------------
config.get_config
- /Users/tbaker/github/tap/dctap-python/dctap/config.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG_get_config.py
- Replace: config_yamlfile -> configfile=DEFAULT
- Replace: config_yamlstring -> configyaml=DEFAULT
- Add: shapeclass=DEFAULT
- Add: stateclass=DEFAULT
config.get_config._get_shems
- /Users/tbaker/github/tap/dctap-python/dctap/get_config.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG_get_shems_stems.py
- Add: shapeclass=None - gets from _initialize_config_dict, which gets from get_config
config.get_config._get_stems
- /Users/tbaker/github/tap/dctap-python/dctap/get_config.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG_get_shems_stems.py
- Add: stateclass=None - gets from _initialize_config_dict, which gets from get_config
config.get_config._initialize_config_dict
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG__initialize_config_dict.py
- Add: shapeclass=None - gets from get_config
- Add: stateclass=None - gets from get_config
config.get_config.write_configfile
- /Users/tbaker/github/tap/dctap-python/dctap/get_config.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG_write_configfile.py
- Replace: config_yamlfile -> configfile=DEFAULT
- Replace: config_yamlstring -> configyaml=DEFAULT
Downstream
- /Users/tbaker/github/tap/dctap-python/tests/test_CONFIG_get_config_extra_element_aliases.py
- /Users/tbaker/github/tap/dctap-python/tests/test_STATE_picklist_elements.py
- /Users/tbaker/github/tap/dctap-python/tests/test_STATE_valueConstraintType_languagetag.py
- /Users/tbaker/github/tap/dctap-python/tests/test_STATE_valueConstraintType_minLength.py
- /Users/tbaker/github/tap/dctap-python/tests/test_STATE_valueConstraintType_picklist.py
- /Users/tbaker/github/tap/dctap-python/tests/test_issue18.py
---------------------------------------------------------
csvreader
- /Users/tbaker/github/tap/dctap-python/dctap/csvreader.py
- Add: stateclass=DEFAULT
csvreader._get_tapshapes
- /Users/tbaker/github/tap/dctap-python/dctap/csvreader.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CSVREADER_get_tapshapes.py
- Add: stateclass=None - gets from csvreader
csvreader._make_shape
- /Users/tbaker/github/tap/dctap-python/dctap/csvreader.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CSVREADER__make_shape.py
- Add: stateclass=None - gets from _get_tapshapes
Downstream
- /Users/tbaker/github/tap/dctap-python/tests/test_CSVREADER__add_namespaces.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CSVREADER__normalize_element_name.py
- /Users/tbaker/github/tap/dctap-python/tests/test_CSVREADER_get_rows.py
if nondefault configfile specified
try
use it
except FileNotFound
raise ConfigError
elif nondefault yamlstring specified
use it
return
else
try
use default configifle
except FileNotFound
use default configfile
The function get_config computes the dictionary of configuration settings
needed by dctap for proper execution. If called with no arguments, the function
uses built-in package-level defaults: built-in dataclasses, built-in settings,
and the default name of an optional configuration file. These defaults can be
overridden by expert users or by other Python packages. Alternatively, the
function will accept either nondefault configuration settings (YAML string) or
a nondefault configuration file (filename name).
Arguments for get_config are processed as follows:
- If a nondefault configuration file is specified, get_config will try to use this and
exit if the file is not found.
- If no nondefault configuration file is specified, get_config will try to use it.
- If no default configuration file is found, get_config will try