Since you use variables using these below, you should do `frequency = sympyify(frequency)`, then set `self._frequency` below (same for timeperiod)