Skip to content

Commit

Permalink
Add name and movable fo BundleConf
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Sep 9, 2020
1 parent 0598cc8 commit 022d579
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions megaradrp/instrument/focalplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,15 @@ def __init__(self):
class BundleConf(object):
"""Description of a bundle"""
def __init__(self, bundle_id, bundle_type, target_type=TargetType.UNASSIGNED,
target_priority=0, target_name='unknown', enabled=True):
target_priority=0, target_name='unknown', enabled=True, movable=True):
self.id = bundle_id
self.name = "unknown"
self.bundle_type = bundle_type
self.target_type = target_type
self.target_priority = target_priority
self.target_name = target_name
self.enabled = enabled
self.movable = movable
self.nfibers = 7
if self.bundle_type == BundleType.LCB:
self.nfibers = 567
Expand Down Expand Up @@ -333,7 +335,11 @@ def nearby(self, fibid):
class LcbBundleConf(BundleConf):
"""Description of the LCB bundle"""
def __init__(self, bundle_id=0):
super(LcbBundleConf, self).__init__(bundle_id=bundle_id, bundle_type=BundleType.LCB)
super(LcbBundleConf, self).__init__(
bundle_id=bundle_id, bundle_type=BundleType.LCB,
movable=False
)
self.name = "LCB"
self.nrows = 21
self.ncols = 27

Expand All @@ -343,7 +349,7 @@ class SkyBundleConf(BundleConf):
def __init__(self, bundle_id):
super(SkyBundleConf, self).__init__(
bundle_id=bundle_id, bundle_type=BundleType.SKY,
target_type=TargetType.SKY
target_type=TargetType.SKY, movable=False
)


Expand Down

0 comments on commit 022d579

Please sign in to comment.