Comments (4)
nmrglue's linear prediction routines require complex input and you are passing real-only data. You could try converting your data to a complex dtype using:
test = test.astype('complex64')
Even with the change I would not expect good results. LP models models a FID as a decaying sinusoidal which oscillated between the real and imaginary channels. If the imaginary channel is all zero I would expect that such a model would have difficulties.
from nmrglue.
Hi,
Thanks for the reply! As I mentioned in my post, I actually did try to cast it as a complex64, and still got the error, so I'm not sure whats going on there. If I bypass the bad_root finding routine, I'm able to get it to run. I know that for NMR, LP is based around it being a complex value, but I've found that LP is also used for speech modeling, which is real-valued.
from nmrglue.
I actually did try to cast it as a complex64
The commented out line you posted did not save the cast values, see the line I proposed.
but I've found that LP is also used for speech modeling, which is real-valued.
This is true but the setup of the problems are very different. I would not expect a NMR based LP routine to be well suited for speech modeling but you are welcome to try.
from nmrglue.
Ah good to know, didn't know that you couldn't manipulate a numpy arrays state with the "." like you can for a python list. That fixed it!
Yeah I just wanted to check out how it works, and if I get something promising, then I can try implementing a more focused package.
from nmrglue.
Related Issues (20)
- Support for Spinsolve Files? HOT 10
- Top and bottom halves of data are inverted HOT 8
- Echo anti-echo aquisition HOT 10
- CSDM conversion? HOT 2
- so this might be off-topic. nmrglue to recreate peaks from point measurements and S/D/T/Q peak hierarchy? HOT 1
- Spectra trace simulation from tabel HOT 1
- Bug in unit_conversion().ppm_scale() HOT 2
- STOCSY for python/Jupyter within nmrglue
- Converting nmrML spectra to Bruker format HOT 10
- nmrglue import fails with scipy=1.8 HOT 4
- Problem number of points in 2D experiments HOT 6
- nmrglue import fails with scipy=1.8
- Installation fails with setuptools v61.2.0 HOT 2
- Import error - scipy version 1.8.0 HOT 1
- integrate_2d: how to get limits.in? HOT 2
- Problem with 1D plotting - maybe HOT 3
- Failed to load Bruker Data HOT 2
- Give up on Python 3.6 HOT 1
- Process_pipe_3d:There seems to be some issues with the processing script HOT 13
- nmrglue fails loading due to scipy.minpack deprecation (1.9.3) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmrglue.