<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def constrain_secdepth(self, thresh):
 """ Constrain the observed secondary depth to be less than a given value :param thresh: Maximum allowed fractional depth for diluted secondary eclipse depth """

        self.apply_constraint(UpperLimit(self.secondary_depth, thresh, name='secondary depth'))