Commit 4a492681 authored by bepinat's avatar bepinat

Correction of a bug in create_config_test.py

parent 33c16356
File mode changed from 100644 to 100755
......@@ -204,8 +204,8 @@ def create_config(path, cubefile, varfile, catfile, lines, suffixeout, commonw=T
logger.error('dv must be not None and non-zero')
if deltav is not None:
deltaz = dz_from_dv(deltav, line['Z'])
fo.write('ZRMIN = ' + str(line['Z'] - dz) + ' / minimum redshift for spectral range around lines \n')
fo.write('ZRMAX = ' + str(line['Z'] + dz) + ' / maximum redshift for spectral range around lines \n')
fo.write('ZRMIN = ' + str(line['Z'] - deltaz) + ' / minimum redshift for spectral range around lines \n')
fo.write('ZRMAX = ' + str(line['Z'] + deltaz) + ' / maximum redshift for spectral range around lines \n')
else:
if dv is not None:
deltaz = 2 * dz
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment