Skip to content

Commit

Permalink
don't set the name, just get it
Browse files Browse the repository at this point in the history
  • Loading branch information
KaraMelih committed Oct 5, 2023
1 parent c365af1 commit 3c153bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snews_pt/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def __init__(self, fields, detector_name='TEST', **kwargs):
tier = self.__class__.__name__.replace('SNEWS','').replace('Message','')

# Get the detector name from the input.
# det = self.get_detector_name(detector_name)
det = snews_pt_utils.set_name(detector_name, _return=True)
det = self.get_detector_name(detector_name) # just fetches from the env
# det = snews_pt_utils.set_name(detector_name, _return=True) # rewrites the env each time
raw_mt = kwargs.get('machine_time', None)
mt = self.clean_time_input(raw_mt)
raw_mt = mt if isinstance(raw_mt, str) else None
Expand Down

0 comments on commit 3c153bb

Please sign in to comment.