def serialize_params(self, params, complex):
        params = super(CocorahsIO, self).serialize_params(params, complex)
        fmt = '%m/%d/%Y'

        # Different date parameters and formats depending on use case
        if params in 'EndDate':
            # Date range (usually used with datetype=reportdate)
            params['StartDate'] = self.getvalue('start_date').strftime(fmt)
            params['EndDate'] = self.getvalue('end_date').strftime(fmt)
        else:
            # Only start date (usually used with datetype=timestamp)
            params['Date'] = self.getvalue(
                'start_date'
            ).strftime(fmt + " %I:%M %p")
            del params['StartDate']
        return params
dataset/ETHPy150Open heigeo/climata/climata/cocorahs/__init__.py/CocorahsIO.serialize_params/swapped operands of `in`