SOLPSxport_dr.py
def main_omfit(topdir, subfolder, gfile_loc, prof_folder = None,
               prof_filename_prefix = 'prof171558_3200',
               new_filename = 'b2.transport.inputfile_new',
               use_existing_last10 = False,
               carbon = True, plotall = False, debug_plots = False, plot_xport_coeffs = True):
    """
    **This has not yet been fixed to work with the current version of these codes**
    """
    print("WARNING: This routine is likely to break")
    print("         Updates need to be made before it works with OMFIT outputs")

    print("Initializing SOLPSxport")
    xp = sxp.SOLPSxport(workdir = topdir + subfolder, gfile_loc = gfile_loc, carbon_bool = carbon)
    print("Running getSOLPSlast10Profs")
    xp.getSOLPSlast10Profs(plotit = plotall, use_existing_last10 = use_existing_last10)
    print("Running getProfsOMFIT")
    xp.getProfsOMFIT(prof_folder = prof_folder, prof_filename_prefix = prof_filename_prefix,
                     min_npsi = 100, psiMax = 1.05, plotit = plotall)
    print("Running calcPsiVals")
    xp.calcPsiVals(plotit = plotall)

    if carbon:
        print("Running getSOLPSCarbonProfs")
        xp.getSOLPSCarbonProfs(plotit = plotall)

    print("Running calcXportCoeff")
    xp.calcXportCoef(plotit = plotall or plot_xport_coeffs, debug_plots = debug_plots)

    print("Writing to " + new_filename)
    xp.writeXport(new_filename = new_filename)

    return xp

    **This has not yet been fixed to work with the current version of these codes**
    
This has not yet been fixed to work with the current version of these codes
This has not yet been fixed to work with the current version of these codes
def main_omfit(topdir, subfolder, gfile_loc, prof_folder = None,
               prof_filename_prefix = 'prof171558_3200',
               new_filename = 'b2.transport.inputfile_new',
               use_existing_last10 = False,
               carbon = True, plotall = False, debug_plots = False, plot_xport_coeffs = True):
    print("WARNING: This routine is likely to break")
    print("         Updates need to be made before it works with OMFIT outputs")
    print("Initializing SOLPSxport")
    xp = sxp.SOLPSxport(workdir = topdir + subfolder, gfile_loc = gfile_loc, carbon_bool = carbon)
    print("Running getSOLPSlast10Profs")
    xp.getSOLPSlast10Profs(plotit = plotall, use_existing_last10 = use_existing_last10)
    print("Running getProfsOMFIT")
    xp.getProfsOMFIT(prof_folder = prof_folder, prof_filename_prefix = prof_filename_prefix,
                     min_npsi = 100, psiMax = 1.05, plotit = plotall)
    print("Running calcPsiVals")
    xp.calcPsiVals(plotit = plotall)
    if carbon:
        print("Running getSOLPSCarbonProfs")
        xp.getSOLPSCarbonProfs(plotit = plotall)
    print("Running calcXportCoeff")
    xp.calcXportCoef(plotit = plotall or plot_xport_coeffs, debug_plots = debug_plots)
    print("Writing to " + new_filename)
    xp.writeXport(new_filename = new_filename)
    return xp
def main_omfit ( topdir , subfolder , gfile_loc , prof_folder = None , prof_filename_prefix = 'prof171558_3200' , new_filename = 'b2.transport.inputfile_new' , use_existing_last10 = False , carbon = True , plotall = False , debug_plots = False , plot_xport_coeffs = True ) : print ( "WARNING: This routine is likely to break" ) print ( "         Updates need to be made before it works with OMFIT outputs" ) print ( "Initializing SOLPSxport" ) xp = sxp . SOLPSxport ( workdir = topdir + subfolder , gfile_loc = gfile_loc , carbon_bool = carbon ) print ( "Running getSOLPSlast10Profs" ) xp . getSOLPSlast10Profs ( plotit = plotall , use_existing_last10 = use_existing_last10 ) print ( "Running getProfsOMFIT" ) xp . getProfsOMFIT ( prof_folder = prof_folder , prof_filename_prefix = prof_filename_prefix , min_npsi = 100 , psiMax = 1.05 , plotit = plotall ) print ( "Running calcPsiVals" ) xp . calcPsiVals ( plotit = plotall ) if carbon : print ( "Running getSOLPSCarbonProfs" ) xp . getSOLPSCarbonProfs ( plotit = plotall ) print ( "Running calcXportCoeff" ) xp . calcXportCoef ( plotit = plotall or plot_xport_coeffs , debug_plots = debug_plots ) print ( "Writing to " + new_filename ) xp . writeXport ( new_filename = new_filename ) return xp
This has not yet been fixed to work with the current version of these codes
This has not yet been fixed to work with the current version of these codes
"""
    **This has not yet been fixed to work with the current version of these codes**
    """
topdir
subfolder
gfile_loc
prof_folder
prof_filename_prefix
new_filename
use_existing_last10
carbon
plotall
debug_plots
plot_xport_coeffs