Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
lvcnrpy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
waveforms
lvcnrpy
Commits
5a5b921b
Commit
5a5b921b
authored
Jul 13, 2018
by
Edward Fauchon-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add phase sense test
parent
6500c5e2
Pipeline
#25112
passed with stage
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
lvcnrpy/test/test_lvcnrcheck.py
lvcnrpy/test/test_lvcnrcheck.py
+18
-0
No files found.
lvcnrpy/test/test_lvcnrcheck.py
View file @
5a5b921b
...
...
@@ -1880,3 +1880,21 @@ class TestPeakNearZero(TestInterfield):
(
output
,
returncode
)
=
helper
.
lvcnrcheck
([
'-f'
,
'3'
,
self
.
f
.
name
],
returncode
=
True
)
assert
output
.
strip
()
==
self
.
output
assert
returncode
==
1
class
TestPhaseSense
(
TestInterfield
):
name
=
'phase-sense'
def
test_invalid_phase_sense
(
self
):
self
.
setOutput
(
(
'- [INVALID INTERFIELD] phase-sense '
'((2,2) phase is not decreasing on average)'
))
nr
=
h5
.
File
(
self
.
f
.
name
)
nr
[
'phase_l2_m2'
][
'Y'
][:]
*=
-
1.0
nr
.
close
()
(
output
,
returncode
)
=
helper
.
lvcnrcheck
([
'-f'
,
'3'
,
self
.
f
.
name
],
returncode
=
True
)
assert
output
.
strip
()
==
self
.
output
assert
returncode
==
1
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