Minor corrections#378
Conversation
There was a problem hiding this comment.
All looks good @MikhailRyazanov, thanks.
Some additional comments:
- Item 3.
abel.tools.center.center_imageis correct, butabel.center_image()also works because of the content ofabel/__init__.py:
(py312)[Gibbo:.+MR-tmp/examples]$ ipython
In [1]: import abel
In [2]: abel.center_image?I don't know whether this is a good or bad "feature".
- Not due to any changes in this PR. I ran
examples/example_all_O2.pyand it failed with the error:
File "/home/stg121/anaconda3/envs/py312/lib/python3.12/site-packages/abel/tools/polar.py", line 71, in reproject_image_into_polar
nr = np.int(np.ceil((r.max() - r.min()) / dr))
^^^^^^
File "/home/stg121/anaconda3/envs/py312/lib/python3.12/site-packages/numpy/__init__.py", line 324, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`.(py312)[Gibbo:.+-tmp/abel/tools]$ grep 'np.int' *.py
polar.py: nr = np.int(np.ceil((r.max() - r.min()) / dr))
polar.py: nt = np.int(np.ceil((theta.max() - theta.min()) / dt))A convenient point to correct the above file. (Edit: Only the one file I think)
|
Thanks, @stggh! Regarding |
Hmm, it appears so. I re-cloned your |
I agree with this. |
If I recall correctly, our thinking at the time was that But, my feelings on the issue are not too strong, so I could be convinced otherwise. And directing people to the Discussions feature seems like a reasonable idea. If we don't like it, it's easy enough to switch back to Issues. Thanks again for keeping PyAbel up-to-date @MikhailRyazanov! |
|
A difficult decision... :–) |
Not so much these days. No new data from my lab, as it has been closed down, and the spectrometer dismantled :-(
I prefer that the explicit call provides the directory location of the function (and API) Not a big deal. I am happy with any call. |
|
OK, I'll merge this as is (using the full path in the README), and let's discuss in #379 what should be done with |
setup.pybecause a regex string wasn't prefixed withr.abel.center.center_imageinstead ofabel.tools.center.center_image(perhaps danging from some old times).