mboquien / cigale

10 stars 0 forks source link

sed.wavelength_grid=None #19

Closed brentmsmith closed 2 years ago

brentmsmith commented 2 years ago

After running pcigale check in my data directory, I get the error: TypeError: unsupported operand type(s) for =: 'NoneType' and 'float'. I'm not sure why this wavelength_grid is being set to None, but the sed object seems to exist. This is occurring in pcigale/sed_modules/redshifting.py at line 188: `sed.wavelength_grid = 1. + redshift. I verified that theredshift` variable is not None but a float.

mboquien commented 2 years ago

Can you try to regenerate your pcigale.ini file after erasing it as well as pcigale.ini.spec. If it keeps occurring, could you attach these files please? Thanks!

brentmsmith commented 2 years ago

@mboquien Thanks for taking a look, attached are the two files. I had to change the extension to txt so they'd upload. pcigale.ini.spec.txt pcigale.ini.txt

mboquien commented 2 years ago

You need to move redshifting to the end of the list of the sed_modules parameter line 54 of the pcigale.ini file. I believe it should work after this.

brentmsmith commented 2 years ago

That did indeed, thank you!