Comments (2)
I think the simplest way is to add another cfhelper function getdim() :: int which returns the dimensionality (probably all it needs to be is an alias for getpar("NDIM") or something like that). After that it is trivial to change line 526 (same for line 540):
nmrpoise/nmrpoise/poise_backend/cfhelpers.py
Lines 521 to 532 in f588c88
to
if p_acqu2s.exists() and getdim() == 2:
Actually, having getdim() will also help with #69 as then inside get1d_real() we can have
try:
# ... code
except FileNotFoundError:
if getdim() == 2:
# raise helpful message from None
else:
raise
from nmrpoise.
PARMODE = acquisition parameter for number of dimensions
PPARMOD = processing parameter for number of dimensions
from nmrpoise.
Related Issues (20)
- More robust testing for system/user costfunctions HOT 1
- More user-friendly exceptions in cfhelpers
- Set RG = 1 in poisecal, poisecal.py HOT 1
- Make dosy_opt more user-friendly HOT 2
- Implement poise --install commands in TopSpin
- Move docs from RTD to GitHub pages HOT 2
- Termination condition inside cost function HOT 2
- Set TI to optimal cost function if optimisation successfully finishes HOT 1
- Distinguish between np.inf return due to out-of-bounds and a genuine cost function of np.inf
- fix optimisation tests
- numpy arrays are vulnerable to overflows HOT 2
- Handle TopSpin 4 data correctly
- Easier way to edit routines/cost functions, apart from directly editing the file
- Installation succeeds on WSL but test_install fails HOT 2
- Error during acquisition loop HOT 5
- `from future import print_function` doesn't work on Python <2.6
- Check pip 21.3 installation HOT 2
- If pulprog file is not found gives cryptic error
- Use JSON schema for frontend/backend communication
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 nmrpoise.