ACCarnall / bagpipes

Bagpipes is a state of the art code for generating realistic model galaxy spectra and fitting these to spectroscopic and photometric observations. Users should install with pip, not by cloning the repository.
http://bagpipes.readthedocs.io
GNU General Public License v3.0
71 stars 37 forks source link

Fitting z>10 objects #68

Closed jackcturner closed 2 months ago

jackcturner commented 2 months ago

Hi,

I'm trying to fit some objects consistently between different codes and noticed bagpipes throwing errors when I set my upper redshift limit to z = 15, which is the limit I'm using elsewhere. I've setting the 'max_redshift' in config.py to 15 but then get this error when importing bagpipes:

File ~/FLAGS-II/flags2/lib/python3.10/site-packages/bagpipes/config.py:169 167 else: 168 wav_check = np.min(igm_file[2].data == igm_wavelengths) --> 169 z_check = np.min(igm_file[3].data == igm_redshifts) 171 if not wav_check or not z_check: 172 igm_inoue2014.make_table(igm_redshifts, igm_wavelengths)

ValueError: operands could not be broadcast together with shapes (1001,) (1501,)

which seems to be an issue with the resolution of the igm grid. Is this the correct way to adjust the maximum value, or are there other steps to resample the grid.

Thanks for any help.

jackcturner commented 2 months ago

Realised I had to delete the original IGM grid for the new grid to be generated, so closing.