andykee / prtools Goto Github PK
View Code? Open in Web Editor NEWUtility functions for image-based phase retrieval
Home Page: https://andykee.github.io/prtools/
License: MIT License
Utility functions for image-based phase retrieval
Home Page: https://andykee.github.io/prtools/
License: MIT License
Doctoring says:
nanwarn : bool, optional
If True, a RuntimeWarning will be raised if NaNs are present
in the output. Default is False.
The nanwarn
argument is never used in the function though.
n/a
No response
1.0.0
1.24.4
1.10.1
3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:41:52) [Clang 15.0.7 ]
centroid returns (nan, nan) when provided an input containing NaNs
import numpy as np
import prtools
c = np.zeros((5,5))
c[2,2] = 1
c[1,1] = np.nan
prtools.centroid(c)
No response
1.0.0
1.22.2
1.8.0
3.8.11 (default, Jul 29 2021, 14:57:32)
[Clang 12.0.0 ]
medfix2 throws a RuntimeWarning if there are large masked areas to repair (larger than kernel size).
The exact message is
/miniconda3/lib/python3.8/site-packages/numpy/lib/nanfunctions.py:1218: RuntimeWarning: All-NaN slice encountered
r, k = function_base._ureduce(a, func=_nanmedian, axis=axis, out=out,
Since the function is behaving as expected, it is safe to just suppress this message and carry on with life.
The documentation should be updated to be more explicit about the interpolation behavior in this case.
It's often useful to do a quick PSF simulation. If calcpsf is still laying around somewhere, it should be included in this library
It would be nice to be able to specify the point about which padding is performed. This is particularly useful when trimming images down to size about a centroid.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.