GabrielaCR / AGNfitter

SED-fitting code for AGN and galaxies from a MCMC approach
MIT License
48 stars 23 forks source link

New AGNfitter-rx_v0.1: operands could not be broadcast together with shapes (10,10) (9,) #28

Closed ritish142857 closed 2 years ago

ritish142857 commented 2 years ago

Hi, I am using the new AGNfitterversion and I am facing this problem. I have used 9 data points and filters.
Properties of the sampling results:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./RUN_AGNfitter_multi.py", line 386, in RUN_AGNfitter_onesource_independent(args.sourcenumber, data_ALL, filters_settings, models_settings, clobbermodel=clobbermodel) File "./RUN_AGNfitter_multi.py", line 231, in RUN_AGNfitter_onesource_independent PLOTandWRITE_AGNfitter.main(data, models, P, out, models_settings)
File "/home/ritish/Documents/AGNfitter/functions/PLOTandWRITE_AGNfitter.py", line 61, in main output = OUTPUT(chain_mcmc, data, models, P, models_settings) File "/home/ritish/Documents/AGNfitter/functions/PLOTandWRITE_AGNfitter.py", line 155, in init fluxobj_4SEDplots.fluxes(self.data, self.models) File "/home/ritish/Documents/AGNfitter/functions/PLOTandWRITE_AGNfitter.py", line 668, in fluxes self.filtered_modelpoints_nuLnu = (filtered_modelpoints lumfactor 10**(data.nus)) ValueError: operands could not be broadcast together with shapes (10,10) (9,)

GabrielaCR commented 2 years ago

Hi! That seems to be the same issue as solved here: https://github.com/GabrielaCR/AGNfitter/issues/14 I hope this helps!

ritish142857 commented 2 years ago

Thanks, it solved the issue. but I have many queries that I want to ask from you.