You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[/tmp/ipykernel_2729/3970811905.py](http://127.0.0.1:8888/tmp/ipykernel_2729/3970811905.py) in <module>
1 # makebasis por defecto normaliza por la masa total al crear los coeficientes
----> 2 basis, coefs = EXPtools.basis_builder.basis_utils.makebasis(pos,mass,'empirical',lmax=6,nmax=20,
3 modelname='empirical_model.txt',cachename='empirical_halo.cache',coef_file='empirical_halo.h5',
4 nbins=500, rmin=1.5, rmax=300
5 )
[~/.local/lib/python3.10/site-packages/EXPtools/basis_builder/basis_utils.py](http://127.0.0.1:8888/home/marcoritou/.local/lib/python3.10/site-packages/EXPtools/basis_builder/basis_utils.py) in makebasis(pos, mass, basis_model, config, basis_id, time, r_s, r_c, nbins, rmin, rmax, log_space, lmax, nmax, scale, norm_mass_coef, modelname, cachename, add_coef, coef_file)
94 #rho = empirical_density_profile(pos, mass, rbins)
95
---> 96 R, D, M, P = makemodel.makemodel(makemodel.empirical_density_profile, M=np.sum(mass),
97 funcargs=[pos, mass], rvals=rbins)
98
[~/.local/lib/python3.10/site-packages/EXPtools/basis_builder/makemodel.py](http://127.0.0.1:8888/home/marcoritou/.local/lib/python3.10/site-packages/EXPtools/basis_builder/makemodel.py) in makemodel(func, M, funcargs, rvals, pfile, plabel, verbose)
163
164 # evaluate potential (see theory document)
--> 165 pvals = -mvals[/](http://127.0.0.1:8888/)(rvals+1.e-10) - (pwvals[dvals.size-1] - pwvals)
166
167 # get the maximum mass and maximum radius
ValueError: operands could not be broadcast together with shapes (500,) (501,)
The text was updated successfully, but these errors were encountered:
When using positions and masses of particles and trying to make an empirical model, during the computing of the model and exception is thrown:
This throws the following exception:
The text was updated successfully, but these errors were encountered: