Пример #1
0
parser.add_argument('-f4', '--percentile_16'   , action='store_true', help='extract percentile 16')
parser.add_argument('-f5', '--percentile_84'   , action='store_true', help='extract percentile 84')
parser.add_argument('-f6', '--percentile_97_5' , action='store_true', help='extract percentile 97.5')

parser.add_argument('-l0',  '--f_mu_sfh'    , action='store_true', help='extract f_mu (SFH)')
parser.add_argument('-l1',  '--f_mu_ir'     , action='store_true', help='extract f_mu (IR)')
parser.add_argument('-l2',  '--mu_parameter', action='store_true', help='extract mu parameter')
parser.add_argument('-l3',  '--tau_v'       , action='store_true', help='extract tau_V')
parser.add_argument('-l4',  '--ssfr_0_1gyr' , action='store_true', help='extract sSFR_0.1Gyr')
parser.add_argument('-l5',  '--m_stars'     , action='store_true', help='extract M(stars)')
parser.add_argument('-l6',  '--l_dust'      , action='store_true', help='extract Ldust')
parser.add_argument('-l7',  '--t_c_ism'     , action='store_true', help='extract T_C^ISM')
parser.add_argument('-l8',  '--t_w_bc'      , action='store_true', help='extract T_W^BC')
parser.add_argument('-l9',  '--xi_c_tot'    , action='store_true', help='extract xi_C^tot')
parser.add_argument('-l10', '--xi_pah_tot'  , action='store_true', help='extract xi_PAH^tot')
parser.add_argument('-l11', '--xi_mir_tot'  , action='store_true', help='extract xi_MIR^tot')
parser.add_argument('-l12', '--xi_w_tot'    , action='store_true', help='extract xi_W^tot')
parser.add_argument('-l13', '--tau_v_ism'   , action='store_true', help='extract tau_V^ISM')
parser.add_argument('-l14', '--m_dust'      , action='store_true', help='extract M(dust)')
parser.add_argument('-l15', '--sfr_0_1gyr'  , action='store_true', help='extract SFR_0.1Gyr')

args = vars(parser.parse_args())

features, layers = get_features_and_layers(args)

if len(features) == 0 or len(layers) == 0:
    parser.print_help()
    exit(1)

generate_files(galaxy_name=args['galaxy_name'][0], email=args['email'][0], features=features, layers=layers)
Пример #2
0
parser.add_argument("-f4", "--percentile_16", action="store_true", help="extract percentile 16")
parser.add_argument("-f5", "--percentile_84", action="store_true", help="extract percentile 84")
parser.add_argument("-f6", "--percentile_97_5", action="store_true", help="extract percentile 97.5")

parser.add_argument("-l0", "--f_mu_sfh", action="store_true", help="extract f_mu (SFH)")
parser.add_argument("-l1", "--f_mu_ir", action="store_true", help="extract f_mu (IR)")
parser.add_argument("-l2", "--mu_parameter", action="store_true", help="extract mu parameter")
parser.add_argument("-l3", "--tau_v", action="store_true", help="extract tau_V")
parser.add_argument("-l4", "--ssfr_0_1gyr", action="store_true", help="extract sSFR_0.1Gyr")
parser.add_argument("-l5", "--m_stars", action="store_true", help="extract M(stars)")
parser.add_argument("-l6", "--l_dust", action="store_true", help="extract Ldust")
parser.add_argument("-l7", "--t_c_ism", action="store_true", help="extract T_C^ISM")
parser.add_argument("-l8", "--t_w_bc", action="store_true", help="extract T_W^BC")
parser.add_argument("-l9", "--xi_c_tot", action="store_true", help="extract xi_C^tot")
parser.add_argument("-l10", "--xi_pah_tot", action="store_true", help="extract xi_PAH^tot")
parser.add_argument("-l11", "--xi_mir_tot", action="store_true", help="extract xi_MIR^tot")
parser.add_argument("-l12", "--xi_w_tot", action="store_true", help="extract xi_W^tot")
parser.add_argument("-l13", "--tau_v_ism", action="store_true", help="extract tau_V^ISM")
parser.add_argument("-l14", "--m_dust", action="store_true", help="extract M(dust)")
parser.add_argument("-l15", "--sfr_0_1gyr", action="store_true", help="extract SFR_0.1Gyr")

args = vars(parser.parse_args())

features, layers = get_features_and_layers(args)

if len(features) == 0 or len(layers) == 0:
    parser.print_help()
    exit(1)

generate_files(galaxy_name=args["galaxy_name"][0], email=args["email"][0], features=features, layers=layers)
features, layers = get_features_and_layers(args)

if len(features) == 0 or len(layers) == 0:
    parser.print_help()
    exit(1)

with open(args['file_name'][0], 'rb') as csv_file:
    reader = csv.reader(csv_file)

    # Skip the header
    names = []
    reader.next()
    for row in reader:
        if len(row) == 2:
            if int(row[1]) > 1:
                galaxy_name = '{0}_V{1}'.format(row[0], row[1])
            else:
                galaxy_name = row[0]

            names.append(galaxy_name)

# Execute the jobs
uuid_str = str(uuid.uuid4())
for galaxy_name in names[:-1]:
    LOG.info('Submitting job for {0} - no confirmation'.format(galaxy_name))
    generate_files(galaxy_name=galaxy_name, email=args['email'][0], features=features, layers=layers, output_uuid_str=uuid_str, send_confirmation=False)

LOG.info('Submitting job for {0}'.format(names[-1]))
generate_files(galaxy_name=names[-1], email=args['email'][0], features=features, layers=layers, output_uuid_str=uuid_str)
LOG.info('All done.')
Пример #4
0
                    help='extract xi_MIR^tot')
parser.add_argument('-l12',
                    '--xi_w_tot',
                    action='store_true',
                    help='extract xi_W^tot')
parser.add_argument('-l13',
                    '--tau_v_ism',
                    action='store_true',
                    help='extract tau_V^ISM')
parser.add_argument('-l14',
                    '--m_dust',
                    action='store_true',
                    help='extract M(dust)')
parser.add_argument('-l15',
                    '--sfr_0_1gyr',
                    action='store_true',
                    help='extract SFR_0.1Gyr')

args = vars(parser.parse_args())

features, layers = get_features_and_layers(args)

if len(features) == 0 or len(layers) == 0:
    parser.print_help()
    exit(1)

generate_files(galaxy_name=args['galaxy_name'][0],
               email=args['email'][0],
               features=features,
               layers=layers)
Пример #5
0
features, layers = get_features_and_layers(args)

if len(features) == 0 or len(layers) == 0:
    parser.print_help()
    exit(1)

with open(args['file_name'][0], 'rb') as csv_file:
    reader = csv.reader(csv_file)

    # Skip the header
    names = []
    reader.next()
    for row in reader:
        if len(row) == 2:
            if int(row[1]) > 1:
                galaxy_name = '{0}_V{1}'.format(row[0], row[1])
            else:
                galaxy_name = row[0]

            names.append(galaxy_name)

# Execute the jobs
uuid_str = str(uuid.uuid4())
for galaxy_name in names[:-1]:
    LOG.info('Submitting job for {0} - no confirmation'.format(galaxy_name))
    generate_files(galaxy_name=galaxy_name, email=args['email'][0], features=features, layers=layers, output_uuid_str=uuid_str, send_confirmation=False)

LOG.info('Submitting job for {0}'.format(names[-1]))
generate_files(galaxy_name=names[-1], email=args['email'][0], features=features, layers=layers, output_uuid_str=uuid_str)
LOG.info('All done.')