BEAST-Fitting / beast

Bayesian Extinction And Stellar Tool
http://beast.readthedocs.io
23 stars 35 forks source link

pixsize_degrees.value throws a float attribute error #686

Closed petiay closed 3 years ago

petiay commented 3 years ago

The call to create_background_density_map.calc_nx_ny_from_pixsize() from megabeast/tools/make_naive_maps.py gives the following error:

megabeast/tools/make_naive_maps.py in create_naive_maps(stats_filename, pix_size)
---> 51     n_x, n_y, ra_delt, dec_delt = calc_nx_ny_from_pixsize(cat, pixsize_degrees)
beast/tools/create_background_density_map.py in calc_nx_ny_from_pixsize(cat, pixsize_degrees)
--> 619     dec_delt = pixsize_degrees.value
AttributeError: 'float' object has no attribute 'value'

Commenting out .value in pixsize_degrees.value fixes the issue, or at least does not produce an error. (the pix_size value option was not used in the call to the megabeast function, therefore the default was used)

karllark commented 3 years ago

Shouldn't this issue be on the megabeast repository (not here on the beast repository)? If so, please move this issue to there and close it here.

petiay commented 3 years ago

The fundamental bug seems to be coming from the BEAST repository, even if I run into it with a call of the megabeast. But I'm up for doing whatever the standard is in such an interdependent situation.

karllark commented 3 years ago

Ah. Ok. Then it belongs here then.