Example #1
0
def bin_data():
    if gp.investigate == 'hern':
        import grh_com
        import grh_Pos
        import grh_MCMCbin
        grh_MCMCbin.run()
    elif gp.investigate == 'gaia':
        import grg_COM, grg_MCMCbin
        grg_COM.run()
        grg_MCMCbin.run()
    elif gp.investigate == 'walk':
        # TODO: call main again after first iteration, if gp.metalpop set
        import grw_COM, grw_MCMCbin # inside there, split by metallicity
        grw_COM.run()
        grw_MCMCbin.run()
        # run for 3D models as well if model is set (needed in rhowalktot)
        if gp.model:
            import grw_com, grw_mcmcbin
            grw_com.run()
            grw_mcmcbin.run()
    elif gp.investigate == 'discsim':
        import grs_com_align # centering, if not aligned yet
        import grs_rho
        import grs_siglos
    return
Example #2
0
def bin_data(gp):
    if gp.investigate == 'hern':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'gaia':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'walk':
        if not gp.walker3D:
            import gr_MCMCbin # inside there, split by metallicity
            gr_MCMCbin.run(gp)
        # run for 3D models as well if model is set (needed in rhotot_walk)
        if gp.walker3D:
            import grw_mcmcbin
            grw_mcmcbin.run(gp)
    elif gp.investigate == 'triax':
        import grt_dens
        grt_dens.run(gp)
        import grt_siglos
        grt_siglos.run(gp)
    elif gp.investigate == 'obs':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'discmock':
        import grdm_write
        grdm_write.run(gp)
    elif gp.investigate == 'discsim':
        import grds_write
        grds_write.run(gp)
    return
Example #3
0
def bin_data(gp):
    if gp.investigate == 'hern':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'gaia':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'walk':
        if not gp.walker3D:
            import gr_MCMCbin  # inside there, split by metallicity
            gr_MCMCbin.run(gp)
        # run for 3D models as well if model is set (needed in rhotot_walk)
        if gp.walker3D:
            import grw_mcmcbin
            grw_mcmcbin.run(gp)
    elif gp.investigate == 'triax':
        import grt_dens
        grt_dens.run(gp)
        import grt_siglos
        grt_siglos.run(gp)
    elif gp.investigate == 'obs':
        import gr_MCMCbin
        gr_MCMCbin.run(gp)
    elif gp.investigate == 'discmock':
        import grdm_write
        grdm_write.run(gp)
    elif gp.investigate == 'discsim':
        import grds_write
        grds_write.run(gp)
    return