Default inhouse proposal names can be official proposals
Issue reported by @muzelle
Apparently BM02 can have an official proposal with starts with the beamline name bm022868
. These names are normally reserved for the default inhouse proposals.
This is the code in Bliss that checks the proposal name and decides the type of proposal (visitor, inhouse or test):
def proposal_type(self, eval_dict=None):
proposal = self.get_cached_property("proposal_name", eval_dict)
bl = self.get_cached_property("beamline", eval_dict)
for proposal_prefix in ("blc", "ih", bl):
if proposal.startswith(proposal_prefix):
return "inhouse"
for proposal_prefix in ("tmp", "temp", "test"):
if proposal.startswith(proposal_prefix):
return "tmp"
return "visitor"