Comments (6)
Hm, naked exceptions don't get nicely printed unless you use one of the std::exception subclasses.
You can get a line number using a backtrace:
#6 0x000055555555b91f in sbn_ParseFile (inst=0x555555789c20, fname=0x55555556b228 "data/four_taxon.tre") at _build/libsbn.cpp:13
I don't want to have to ask users to do this to get detailed information on their errors. Perhaps a better solution is to use a compiler macro like so.
from bito.
Also, am I mostly going to be using asserts? If so, should they be the doctest asserts?
from bito.
Going to use exceptions. When we make the switch, don't forget to drop the corresponding iostream includes.
from bito.
Can we have the messages available in Jupyter?
from bito.
Pybind documentation on redirecting std::cerr
and std::cout
to Python: https://pybind11.readthedocs.io/en/stable/advanced/pycpp/utilities.html#capturing-standard-output-from-ostream
from bito.
Closed by 93cf7b6
from bito.
Related Issues (20)
- Top-Pruning: PLVHandler Update
- Top-Pruning: ChoiceMap -- TreeMask Update and Build Trees HOT 3
- parsimony 1: perform Sankoff on trees HOT 2
- parsimony 2 Sankoff on DAG
- Top-Pruning: Top-Pruning Engine & Init on Tree HOT 2
- yet more iteration over unordered maps leading to inconsistent behavior
- TPEngine: Init DAG for Likelihood
- TPEngine: Init DAG for Parsimony
- TPEngine: Update after Add NNI
- TPEngine: Add Rescaling to Likelihood Computations
- TPEngine: Move PVs from Node-based to Edge-based HOT 2
- Interfaces for Evaluation Engines
- Optimization fails after Brent templating
- TPEngine: Assign an edge's neighbors based on "edge heuristic" instead of "subsplit heuristic". HOT 2
- Errors compiling bito with GitHub action and locally
- Rooted trees ignore original taxa labels
- SubsplitDAG: Add map for quick lookup of parent and child nodes.
- DAGStorage throws error where line references a line outside of range.
- Bug: GP Branch lengths are not being updated from default branch length during NNI search.
- Add Dockerfile
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 bito.