Johann Rohwer
Johann Rohwer
Thanks for the quick replies, this has been very helpful! Minimal example: ``` python class MyFigure: def __init__(self): self.fig, self.ax = plt.subplots() self.ax.plot([1,3,2]) self.fig.canvas.mpl_connect('button_press_event', self.press) def press(self, event): x =...
Thanks for the great explanation - makes sense. It would be great to have some documentation, agreed! Even if a change like this were mentioned in the release notes it...
I am interested in this because I am porting the build system of another package (PySCeS) to try and get rid of the `distutils` and `numpy.distutils` dependencies. The package has...
I've tracked down the origin of this to the expansion of `tempfile.mkdtemp()` here: https://github.com/numpy/numpy/blob/5bc59763e891ab367410085453c352198cb935d4/numpy/f2py/f2py2e.py#L514-L525 If I manually specify a `--build-dir` on the command line, or in the `CMakeLists.txt` call to...
Incidentially, I see that the f2py compile process itself makes use of `numpy.distutils` extensively, e.g. https://github.com/numpy/numpy/blob/5bc59763e891ab367410085453c352198cb935d4/numpy/f2py/f2py2e.py#L607 https://github.com/numpy/numpy/blob/5bc59763e891ab367410085453c352198cb935d4/numpy/f2py/f2py2e.py#L636 What is the numpy strategy going forward with this, with the deprecation of...
> > I am interested in this because I am porting the build system of another package (PySCeS) to try and get rid of the `distutils` and `numpy.distutils` dependencies. The...
> @jmrohwer I just saw the comment on [gh-22225](https://github.com/numpy/numpy/pull/22225), and that reminded me of this issue. Is it still relevant? @rgommers I am happy to close this. Apologies for the...
The only parameters that can be changed here are the optimization method, the frac_gauss and whether to use multiprocessing or not. See: https://nmrpy.readthedocs.io/en/latest/data_objects.html#nmrpy.data_objects.FidArray.deconv_fids The peak position is taken from the...
From the source: ```python fid._deconvoluted_peaks() """This is a list of lists of peak parameters with the order [offset, gauss_sigma, lorentz_hwhm, amplitude, frac_gauss]: offset: spectral offset gauss_sigma: Gaussian sigma lorentz_hwhm: Lorentzian...
There is no direct method to do this but it is very easy just using standard matplotlib plotting functions. Every `fid` object has the associated spectral data (1D numpy array)...