domeckert / pyproffit

Pyproffit is a Python code for the analysis of X-ray brightness profiles from clusters of galaxies
GNU General Public License v3.0
18 stars 4 forks source link

Bugfix #10

Closed ghost closed 3 years ago

ghost commented 3 years ago

A correction for the emergence of a bug in the extraction of profiles. It appears because of the use of np.arange which can lead to problems with final values under certain rounding. Fixed by safe-casting the array under maxrad. Change for consistency: replace model.model() by model() since the call method is implemented.

domeckert commented 3 years ago

OK; note that the call statement of the Model class is equivalent to calling Model.model(), so it should make no difference.