Skip to content

Commit

Permalink
Added a proposal id setter function.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Feb 12, 2025
1 parent 4c426af commit 75ff93a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions banzai/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ def block_end_date(self):
def proposal(self):
pass

@proposal.setter
@abc.abstractmethod
def proposal(self, value):
pass

@property
@abc.abstractmethod
def blockid(self):
Expand Down
4 changes: 4 additions & 0 deletions banzai/lco.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def block_end_date(self):
def proposal(self):
return self.primary_hdu.meta.get('PROPID')

@proposal.setter
def proposal(self, value):
self.primary_hdu.meta['PROPID'] = value

@property
def blockid(self):
id = self.primary_hdu.meta.get('BLKUID')
Expand Down

0 comments on commit 75ff93a

Please sign in to comment.