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
89de8882
Commit
89de8882
authored
5 years ago
by
iregon
Browse files
Options
Download
Email Patches
Plain Diff
Changed supported_file_formats to supported_data_models
parent
e798e414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
properties.py
properties.py
+4
-4
No files found.
properties.py
View file @
89de8882
...
@@ -12,7 +12,7 @@ import pandas as pd
...
@@ -12,7 +12,7 @@ import pandas as pd
# Supported formats, sources and internal data models -------------------------
# Supported formats, sources and internal data models -------------------------
schema_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'schemas'
,
'lib'
)
schema_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'schemas'
,
'lib'
)
supported_
file_format
s
=
[
os
.
path
.
basename
(
x
).
split
(
"."
)[
0
]
for
x
in
glob
.
glob
(
schema_path
+
'/*/*.json'
)
if
os
.
path
.
basename
(
x
).
split
(
"."
)[
0
]
==
os
.
path
.
dirname
(
x
).
split
(
"/"
)[
-
1
]]
supported_
data_model
s
=
[
os
.
path
.
basename
(
x
).
split
(
"."
)[
0
]
for
x
in
glob
.
glob
(
schema_path
+
'/*/*.json'
)
if
os
.
path
.
basename
(
x
).
split
(
"."
)[
0
]
==
os
.
path
.
dirname
(
x
).
split
(
"/"
)[
-
1
]]
supported_sources
=
[
pd
.
io
.
parsers
.
TextFileReader
,
io
.
StringIO
]
supported_sources
=
[
pd
.
io
.
parsers
.
TextFileReader
,
io
.
StringIO
]
# Data types ------------------------------------------------------------------
# Data types ------------------------------------------------------------------
...
@@ -37,12 +37,12 @@ data_type_conversion_args = {}
...
@@ -37,12 +37,12 @@ data_type_conversion_args = {}
for
dtype
in
numeric_types
:
for
dtype
in
numeric_types
:
data_type_conversion_args
[
dtype
]
=
[
'scale'
,
'offset'
]
data_type_conversion_args
[
dtype
]
=
[
'scale'
,
'offset'
]
data_type_conversion_args
[
'str'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'str'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'object'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'object'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'key'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'key'
]
=
[
'disable_white_strip'
]
data_type_conversion_args
[
'datetime'
]
=
[
'datetime_format'
]
data_type_conversion_args
[
'datetime'
]
=
[
'datetime_format'
]
# Misc ------------------------------------------------------------------------
# Misc ------------------------------------------------------------------------
tol
=
1E-10
tol
=
1E-10
dummy_level
=
'SECTION__'
dummy_level
=
'SECTION__'
# Length of reports in initial read
# Length of reports in initial read
MAX_FULL_REPORT_WIDTH
=
100000
MAX_FULL_REPORT_WIDTH
=
100000
\ No newline at end of file
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