def runDSSAT(dbname, options):
    """Driver function for performing a DSSAT forecast simulation"""
    startyear, startmonth, startday = map(
        int, options['forecast']['startdate'].split('-'))
    endyear, endmonth, endday = map(
        int, options['forecast']['enddate'].split('-'))
    res = float(options['forecast']['resolution'])
    nens = int(options['dssat']['ensemble size'])
    name = options['forecast']['name'].lower()
    dssatexe = "{0}/DSSAT_Ex.exe".format(rpath.bins)
    if options['dssat'] in 'shapefile':
        shapefile = options['dssat']['shapefile']
    else:
        shapefile = None
    model = dssat.DSSAT(dbname, name, res, startyear, startmonth, startday,
                        endyear, endmonth, endday, nens, options['vic'], shapefile)
    model.run(dssatexe)
dataset/ETHPy150Open nasa/RHEAS/src/forecast.py/runDSSAT/swapped operands of `in`