Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
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
LOFAR2.0
tango
Commits
d4a2ddc0
Commit
d4a2ddc0
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-404
: remove string None support
parent
ec1fde3e
No related branches found
No related tags found
1 merge request
!253
Resolve L2SS-404 "Archiving setup development"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/toolkit/archiver.py
+4
-4
4 additions, 4 deletions
tangostationcontrol/tangostationcontrol/toolkit/archiver.py
with
4 additions
and
4 deletions
tangostationcontrol/tangostationcontrol/toolkit/archiver.py
+
4
−
4
View file @
d4a2ddc0
...
@@ -109,8 +109,8 @@ class Archiver():
...
@@ -109,8 +109,8 @@ class Archiver():
self
.
dev_polling_time
=
int
(
var_dict
[
'
development_polling_time
'
])
self
.
dev_polling_time
=
int
(
var_dict
[
'
development_polling_time
'
])
abs_change
=
var_dict
[
'
development_archive_abs_change
'
]
abs_change
=
var_dict
[
'
development_archive_abs_change
'
]
rel_change
=
var_dict
[
'
development_archive_rel_change
'
]
rel_change
=
var_dict
[
'
development_archive_rel_change
'
]
self
.
dev_archive_abs_change
=
Non
e
and
int
(
abs_change
)
self
.
dev_archive_abs_change
=
abs_chang
e
and
int
(
abs_change
)
self
.
dev_archive_rel_change
=
Non
e
and
int
(
rel_change
)
self
.
dev_archive_rel_change
=
rel_chang
e
and
int
(
rel_change
)
self
.
dev_archive_period
=
int
(
var_dict
[
'
development_archive_period
'
])
self
.
dev_archive_period
=
int
(
var_dict
[
'
development_archive_period
'
])
self
.
dev_event_period
=
int
(
var_dict
[
'
development_event_period
'
])
self
.
dev_event_period
=
int
(
var_dict
[
'
development_event_period
'
])
self
.
dev_strategy
=
var_dict
[
'
development_strategy
'
]
self
.
dev_strategy
=
var_dict
[
'
development_strategy
'
]
...
@@ -192,8 +192,8 @@ class Archiver():
...
@@ -192,8 +192,8 @@ class Archiver():
self
.
cm
.
write_attribute
(
'
SetStrategy
'
,
strategy
)
self
.
cm
.
write_attribute
(
'
SetStrategy
'
,
strategy
)
self
.
cm
.
write_attribute
(
'
SetPollingPeriod
'
,
polling_period
)
self
.
cm
.
write_attribute
(
'
SetPollingPeriod
'
,
polling_period
)
self
.
cm
.
write_attribute
(
'
SetPeriodEvent
'
,
event_period
)
self
.
cm
.
write_attribute
(
'
SetPeriodEvent
'
,
event_period
)
if
not
(
abs_change
is
None
or
abs_change
==
"
None
"
)
:
self
.
cm
.
write_attribute
(
'
SetAbsoluteEvent
'
,
abs_change
)
if
abs_change
is
not
None
:
self
.
cm
.
write_attribute
(
'
SetAbsoluteEvent
'
,
abs_change
)
if
not
(
rel_change
is
None
or
rel_change
==
"
None
"
)
:
self
.
cm
.
write_attribute
(
'
SetRelativeEvent
'
,
rel_change
)
if
rel_change
is
not
None
:
self
.
cm
.
write_attribute
(
'
SetRelativeEvent
'
,
rel_change
)
self
.
cm
.
AttributeAdd
()
self
.
cm
.
AttributeAdd
()
logger
.
info
(
f
"
Attribute
{
attribute_name
}
added to archiving list!
"
)
logger
.
info
(
f
"
Attribute
{
attribute_name
}
added to archiving list!
"
)
except
DevFailed
as
e
:
except
DevFailed
as
e
:
...
...
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