Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CFA Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JOSSOUD Olivier
CFA Analysis
Commits
2f0640c8
Commit
2f0640c8
authored
5 years ago
by
JOSSOUD Olivier
Browse files
Options
Downloads
Patches
Plain Diff
Explo. Using cfatool. Beginning
parent
f2aedb6d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dataprovider/exploprovider.py
+4
-1
4 additions, 1 deletion
src/dataprovider/exploprovider.py
src/uim/explouim.py
+0
-1
0 additions, 1 deletion
src/uim/explouim.py
with
4 additions
and
2 deletions
src/dataprovider/exploprovider.py
+
4
−
1
View file @
2f0640c8
...
...
@@ -5,17 +5,20 @@ import re
import
xmltodict
import
xml.etree.cElementTree
as
ET
from
io
import
StringIO
from
cfatools.logreader.instrument
import
InstrumentReader
import
utils
from
dataprovider.picarroprovider
import
PicarroProvider
class
ExploProvider
:
def
__init__
(
self
,
picarro_prvd
:
PicarroProvider
):
self
.
datasets_root_directory
=
""
self
.
datasets
=
{}
self
.
picarro_prvd
=
picarro_prvd
self
.
instrument_reader
=
None
def
explore_root_directory
(
self
,
root_directory
:
str
)
->
list
:
"""
Get the names of the datasets directories.
...
...
@@ -31,6 +34,7 @@ class ExploProvider:
List of dataset directories name (without full path)
"""
self
.
instrument_reader
=
InstrumentReader
(
base_path
=
root_directory
)
directories
=
[]
# Find all directories in datasets root directory (not recursive)
...
...
@@ -85,7 +89,6 @@ class Dataset:
inst_and_type
=
re
.
search
(
"
^
"
+
self
.
directory_name
+
'
_(.+?).log$
'
,
filename
).
group
(
1
)
except
AttributeError
:
# The found file does not match normal instrument's log file pattern
print
(
"
File [
"
+
filename
+
"
] does not appear to be a valid CFA log file
"
)
continue
instrument_name
=
inst_and_type
.
split
(
"
_
"
)[
0
]
...
...
This diff is collapsed.
Click to expand it.
src/uim/explouim.py
+
0
−
1
View file @
2f0640c8
...
...
@@ -76,7 +76,6 @@ class ExploUim:
self
.
__init_stab__
()
self
.
main_ui
.
explo_pushbutton_stab
.
clicked
.
connect
(
self
.
__show_stab_window__
)
def
__initialize_dataset_combobox__
(
self
):
"""
Populate the
"
datasets
"
combobox with the existing dataset directory names.
"""
data_root_dir
=
self
.
config
.
read
(
"
DATA_SOURCE
"
,
"
absolute_root_dir
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment