Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Software Public
PASSOFT
nexus
Commits
de0143bd
Commit
de0143bd
authored
5 years ago
by
Lloyd Carothers
Browse files
Options
Downloads
Patches
Plain Diff
Fix DLtype getting overwritten by dl_gain setter.
parent
8cf708ae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nexus/nexus.py
+10
-8
10 additions, 8 deletions
nexus/nexus.py
with
10 additions
and
8 deletions
nexus/nexus.py
+
10
−
8
View file @
de0143bd
...
...
@@ -281,7 +281,7 @@ class StationNode(InventoryNode):
for
chan
in
(
chan
for
chan
in
channels
if
chan
.
code
[
1
]
in
(
'
H
'
,
'
L
'
,
'
G
'
,
'
N
'
)):
try
:
gain
=
chan
.
response
.
response_stages
[
1
].
stage_gain
gain
=
chan
.
response
.
response_stages
[
1
].
stage_gain
except
(
AttributeError
,
IndexError
):
continue
self
.
set_dl_gain
(
gain
,
keep_response
=
True
)
...
...
@@ -294,14 +294,16 @@ class StationNode(InventoryNode):
except
ValueError
:
return
for
chan
in
self
.
_inv_obj
.
channels
:
try
:
# If the used clicks in and out ignore
old_gain
=
chan
.
data_logger
.
gain
if
old_gain
==
value
:
return
False
except
AttributeError
:
if
isinstance
(
chan
.
data_logger
,
Equipment
):
try
:
old_gain
=
chan
.
data_logger
.
gain
if
old_gain
==
value
:
continue
except
AttributeError
:
pass
else
:
chan
.
data_logger
=
Equipment
()
chan
.
data_logger
.
gain
=
value
chan
.
data_logger
.
gain
=
value
if
not
keep_response
:
chan
.
response
=
None
return
True
...
...
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