Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

np.float deprecated #74

Open
MichaelW-B opened this issue Feb 16, 2024 · 2 comments
Open

np.float deprecated #74

MichaelW-B opened this issue Feb 16, 2024 · 2 comments
Assignees
Labels
update desired Non-crucial fixes or edge cases

Comments

@MichaelW-B
Copy link

In using GUI.ipynb with allesfitter 1.2.10 and Numpy 1.26.4 at section 5 "Check" there is an AttributeError
--> 291 self.settings['fast_fit_width'] = np.float(self.settings['fast_fit_width'])
292 else:
293 self.settings['fast_fit_width'] = 8./24.
AttributeError: module 'numpy' has no attribute 'float'.

I understand np.float was deprecated in an earlier version of Numpy and 'float' suggested for use but please advise whether the best solution to fixing this is to revert to an earlier vis of Numpy (in which case which one) or best other recommendation, thank you.

@MNGuenther
Copy link
Owner

Hi @MichaelW-B - Thanks for reaching out!

I would recommend to simply amend your local file(s) and replace the "np.float" with "float".

I can take note of updating this in a future release of allesfitter, but I'm afraid there is no foreseen release date for a new version right now. Still, please keep me posted if you find any other things that are deprecated by now.

@MNGuenther MNGuenther added the update desired Non-crucial fixes or edge cases label Feb 16, 2024
@MNGuenther MNGuenther self-assigned this Feb 16, 2024
@MichaelW-B
Copy link
Author

MichaelW-B commented Feb 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update desired Non-crucial fixes or edge cases
Projects
None yet
Development

No branches or pull requests

2 participants