Skip to content
GitLab
Explore
Sign in
Register
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
49dadd66
Commit
49dadd66
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-676
: Explictly refer where markers are recorded in the code
parent
76f02201
No related branches found
No related tags found
1 merge request
!266
L2SS-676: Support parsing beamlet packets
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/packet.py
+6
-1
6 additions, 1 deletion
...ostationcontrol/tangostationcontrol/devices/sdp/packet.py
with
6 additions
and
1 deletion
tangostationcontrol/tangostationcontrol/devices/sdp/packet.py
+
6
−
1
View file @
49dadd66
...
@@ -73,7 +73,12 @@ class SDPPacket(object):
...
@@ -73,7 +73,12 @@ class SDPPacket(object):
@classmethod
@classmethod
def
valid_markers
(
cls
):
def
valid_markers
(
cls
):
"""
Valid values for the
'
marker_raw
'
header field for this class.
"""
"""
Valid values for the
'
marker_raw
'
header field for this class.
Each new packet class that introduces a new marker should be added
to the PACKET_CLASS_FOR_MARKER registry, which holds the mapping
marker -> packet class.
"""
# return all markers registered in PACKET_CLASS_FOR_MARKER which are for this class or any of its specialisations
# return all markers registered in PACKET_CLASS_FOR_MARKER which are for this class or any of its specialisations
return
[
marker
for
marker
,
klass
in
PACKET_CLASS_FOR_MARKER
.
items
()
if
issubclass
(
klass
,
cls
)]
return
[
marker
for
marker
,
klass
in
PACKET_CLASS_FOR_MARKER
.
items
()
if
issubclass
(
klass
,
cls
)]
...
...
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