philrosenfield / match

Python utilities for processing and plotting input and output from Andy Dolphin's MATCH
MIT License
4 stars 1 forks source link

Common file extensions #1

Open philrosenfield opened 9 years ago

philrosenfield commented 9 years ago

In scripts/ I assume some common file extensions that I notice are different from Jake's codes. Mine are hard coded in calcsfh_parallel.py. Perhaps we should have a file that can be imported as a dictionary file-type: file-ext, or just decide on common file extensions for the different MATCH input/output files.

dweisz commented 9 years ago

I agree that we should have a common set of file extensions. Here are some for starters. I'm not sure if they're compatible with your files, so feel free to add or modify accordingly.

.param = MATCH parameter file .full = full MATCH output file .sfh = output of zcombine file .mcmc = output from HMC .popbox = population box generated from zcombine .cmd = Hess diagrams generated by MATCH .console = match console output .ssp = output of MATCH -ssp run

philrosenfield commented 9 years ago

Related: Common filter choices use matchX.X/Girardi2009/xform.h to assign a list of allowed filters and phase out scripts.fileio.parse_pipeline

philrosenfield commented 8 years ago

for now, scripts.config has common extensions that the user can edit. We should probably make a contributions readme file to make sure extensions are not assumed and called using config. I'm not sure config.py is the best way to do it.

philrosenfield commented 8 years ago

Related: for plotting, it's not always useful to have the calcsfh column name "IMF" for example when it should be $\Gamma$ a json file with this information would also be useful. For now, there is a function scripts.graphics.key2label