Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oceano2python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
US191
Oceano2python
Commits
8ff2725b
Commit
8ff2725b
authored
5 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
remove blank before args
parent
de843e5d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_config.py
+5
-3
5 additions, 3 deletions
tests/test_config.py
tests/test_roscop.py
+2
-2
2 additions, 2 deletions
tests/test_roscop.py
with
7 additions
and
5 deletions
tests/test_config.py
+
5
−
3
View file @
8ff2725b
...
...
@@ -21,9 +21,11 @@ class testConfig(unittest.TestCase):
self
.
ctd
=
{
'
cruisePrefix
'
:
'
fr29
'
,
'
station
'
:
'
Station
\\
s*:
\\
s*
\\
D*(
\\
d*)
'
,
'
stationPrefixLength
'
:
3
,
'
titleSummary
'
:
'
CTD profiles processed during PIRATA-FR29 cruise
'
,
'
typeInstrument
'
:
'
SBE911+
'
,
'
instrumentNumber
'
:
'
09P1263
'
,
'
isHeader
'
:
'
^[*#]
'
,
'
isDevice
'
:
[
'
^
\\
*
\\
s+(Sea-Bird)
'
,
'
(
\\
*END
\\
*)
'
],
'
latitude
'
:
[
'
Latitude
\\
s*:
\\
s*(
\\
d+)
\\
s+(
\\
d+.
\\
d+)
\\
s+(
\\
w)
'
,
'
NMEA Latitude
\\
s*=
\\
s*(
\\
d+
\\
s+
\\
d+.
\\
d+
\\
s+
\\
w)
'
],
'
longitude
'
:
[
'
Longitude
\\
s*:
\\
s*(
\\
d+)
\\
s+(
\\
d+.
\\
d+)
\\
s+(
\\
w)
'
,
'
NMEA Longitude
\\
s*=
\\
s*(
\\
d+
\\
s+
\\
d+.
\\
d+
\\
s+
\\
w)
'
],
'
date
'
:
'
Date
\\
s*:
\\
s*(
\\
d+)/(
\\
d+)/(
\\
d+)
'
,
'
hour
'
:
'
[Heure|Hour]
\\
s*:
\\
s*(
\\
d+)[:hH](
\\
d+):(
\\
d+)
'
,
'
latitude
'
:
'
NMEA\s+Latitude\s*[:=]\s*(\d+)\s+(\d+.\d+)\s+(\w)
'
,
'
longitude
'
:
'
NMEA\s+Longitude\s*[:=]\s*(\d+)\s+(\d+.\d+)\s+(\w)
'
,
'
time
'
:
'
System UpLoad Time\s*=\s*(\w+)\s+(\d+)\s+(\d+)\s+(\d+):(\d+):(\d+)
'
,
'
date
'
:
'
Date\s*:\s*(\d+)/(\d+)/(\d+)
'
,
'
hour
'
:
'
[Heure|Hour]\s*:\s*(\d+)[:hH](\d+):(\d+)
'
,
'
bottomDepth
'
:
'
Bottom Depth
\\
s*:
\\
s*(
\\
d*
\\
.?
\\
d+?)
\\
s*
\\
S*
'
,
'
operator
'
:
'
Operator
\\
s*:
\\
s*(.*)
'
,
'
type
'
:
'
Type
\\
s*:
\\
s*(.*)
'
}
self
.
splitCtd
=
{
'
ETDD
'
:
2
,
'
PRES
'
:
3
,
'
DEPTH
'
:
4
,
'
TEMP
'
:
5
,
'
PSAL
'
:
18
,
...
...
This diff is collapsed.
Click to expand it.
tests/test_roscop.py
+
2
−
2
View file @
8ff2725b
...
...
@@ -4,11 +4,11 @@ from physical_parameter import Roscop
'''
Run test in single file
> python -
m unittest -
v tests/test_roscop.py
> python -m unittest -v tests/test_roscop.py
Run all test_ * in dir tests:
> python -m unittest discover tests - v
> python -m unittest discover -
s tests -
p
'
test_*.py
'
-
v
> python -m unittest discover -s tests -p
'
test_*.py
'
-v
'''
...
...
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