new_schedule = os.model.ScheduleRuleset(model1) new_schedule.setName("New Schedule") schedule_limits = os.model.ScheduleTypeLimits(model1) schedule_limits.setName("New Schedule Type Limits") schedule_limits.setUnitType("Fractional") display=schedule_limits.unitType() print(display) schedule_limits.setLowerLimitValue(0.0) schedule_limits.setUpperLimitValue(1.0) new_schedule.setScheduleTypeLimits(schedule_limits) hourly_values = [0.0] * 24 hourly_values[8:18] = [1.0] * 10 schedule_day = os.model.ScheduleDay(model1,24) schedule_day.values = hourly_values print(schedule_day.values)
This the code snippet i am using to set a schedule where my requirement is a fractional type schedule but it auto sets it as dimensionless