Comments (1)
I think I've fixed this now, however there is no general way to add more info for all API methods we write. We will have to do this for every call we write, and modify this existing ones manually. Unless someone can come up with a better idea. There is a traceback attribute now inside the configs that one can access. This is auto-passed back and forth during any API call, and is default to None. If you want to capture and return a traceback you need to something like
from marvin.utils.db import get_traceback
try:
some code
except MarvinError as e:
self.results['error'] = str(e)
self.results['traceback'] = get_traceback(asstring=True)
See the cube_query inside marvin/api/query.py for an example. This will stick the traceback in a hidden attribute on Marvin config called _traceback. This attribute will always hold the last traceback until another one is captured and passed.
from marvin.
Related Issues (20)
- Spatially-Resolved Mass-Metallicity Relation exercise help HOT 3
- Trouble with "Constructing the Spatially-resolved Mass-Metallicity Relation" exercise HOT 1
- Link correction in GZ3D tutorial
- Marvin Error : Cube download DR17 HOT 2
- Import error: cannot import name 'escape' from 'jinja2' HOT 3
- Need help downloading emline maps HOT 3
- Error messages on jinja2, flask, json HOT 4
- packaging version > 22 breaks legacy version syntax HOT 6
- modelcube.stellarcont_fit raises an error HOT 1
- absmag_g_r column is incorrect
- json import error in itsdangerous package
- cannot import name 'safe_str_cmp' from 'werkzeug.security' HOT 2
- Integrated spectra of MaNGA galaxies HOT 2
- cannot import name 'escape' from 'jinja2' HOT 9
- package confliction
- Marvin Web No Longer Displaying Maps HOT 5
- Marvin not opening maps after pip install update HOT 1
- Internal Server error HOT 2
- cannot access maps HOT 6
- Cannot Query Full List of Parameters HOT 1
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 marvin.