Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
brivas
mdf_reader
Commits
a3e3c408
Commit
a3e3c408
authored
5 years ago
by
iregon
Browse files
Options
Download
Email Patches
Plain Diff
Run as script moved externally
parent
ee607237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
read.py
read.py
+3
-5
No files found.
read.py
View file @
a3e3c408
...
...
@@ -14,6 +14,9 @@ Contains the following functions:
* ERV - does the actual extraction, read and validation of data input data
* main - the main function of the script
Can be run as a script with:
python -m mdf_reader data_file **kwargs
"""
...
...
@@ -337,8 +340,3 @@ def main(source, data_model = None, data_model_path = None, sections = None,chun
return
output
()
if
__name__
==
'__main__'
:
kwargs
=
dict
(
arg
.
split
(
'='
)
for
arg
in
sys
.
argv
[
2
:])
if
'sections'
in
kwargs
.
keys
():
kwargs
.
update
({
'sections'
:
[
x
.
strip
()
for
x
in
kwargs
.
get
(
'sections'
).
split
(
","
)]
})
main
(
sys
.
argv
[
1
],
**
kwargs
)
# kwargs
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment