Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nxdblmbackendpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Alexander Perez
nxdblmbackendpython
Commits
4e8ecd87
Commit
4e8ecd87
authored
5 years ago
by
Quentin Codelupi
Browse files
Options
Downloads
Patches
Plain Diff
[update] routine pull all known devices
parent
6c66f5e3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
property_pull.py
+409
-228
409 additions, 228 deletions
property_pull.py
routine_pull.py
+3
-3
3 additions, 3 deletions
routine_pull.py
with
412 additions
and
231 deletions
property_pull.py
+
409
−
228
View file @
4e8ecd87
This diff is collapsed.
Click to expand it.
routine_pull.py
+
3
−
3
View file @
4e8ecd87
...
...
@@ -31,7 +31,8 @@ def start_pull(_fill_infos, _devices=None):
property_pull
.
property_pull
(
_fill_infos
[
'
fillNumber
'
],
'
ALL
'
,
iDevice
,
_fill_infos
[
'
startTime
'
].
strftime
(
"
%Y-%m-%d %H:%M:%S.000
"
),
_fill_infos
[
'
endTime
'
].
strftime
(
"
%Y-%m-%d %H:%M:%S.000
"
))
_fill_infos
[
'
endTime
'
].
strftime
(
"
%Y-%m-%d %H:%M:%S.000
"
),
_files_write
=
False
)
for
iMode
in
_fill_infos
[
"
beamModes
"
]:
print
(
iMode
[
'
mode
'
])
...
...
@@ -70,7 +71,6 @@ def routine_pull(_start_fill=None, _end_fill=None):
new_fill_number
=
_end_fill
last_fll_pulled
=
_start_fill
-
1
# Select only the first 6 devices Cause: not all device works properly with NXCALS yet
gcursor
.
execute
(
'
select name from Device
'
)
devices_request
=
gcursor
.
fetchall
()
devices
=
[]
...
...
@@ -80,7 +80,7 @@ def routine_pull(_start_fill=None, _end_fill=None):
gcursor
.
close
()
mydb
.
close
()
fill_number
=
74
92
fill_number
=
74
43
fill_infos
=
ldb
.
getLHCFillData
(
fill_number
,
False
)
start_pull
(
fill_infos
,
devices
)
...
...
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