Created
February 10, 2015 19:38
-
-
Save alekseygenerozov/c3a2b98a0744d9f3fef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bash_command import bash_command as bc | |
from nuker_catalog import galaxy | |
import cgs_const as cgs | |
dirs=['/Users/aleksey/Second_Year_Project/hydro/pow_gals_final/vw_600.0_rb25.0_outer'] | |
dest='/Users/aleksey/Second_Year_Project/hydro/pow_gals_final' | |
gals=galaxy.get_gals(dirs) | |
for idx,gal in enumerate(gals): | |
suffix='M{0:1.0e}_vw{1:1.1f}_gamma{2:1.1f}_rb{3:1.1f}'.format(gal.params['M']/cgs.M_sun, gal.vw_extra/1.E5, | |
gal.params['gamma'], gal.params['rb']) | |
cmd='mv '+dirs[idx]+' '+dest+'/'+suffix | |
bc(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment