Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with endgame tutorial for pybertini #151

Closed
jbcolli2 opened this issue Jun 11, 2018 · 13 comments
Closed

Errors with endgame tutorial for pybertini #151

jbcolli2 opened this issue Jun 11, 2018 · 13 comments

Comments

@jbcolli2
Copy link
Contributor

jbcolli2 commented Jun 11, 2018

Using a strict copy and paste of the endgame tutorial on the pybertini documentation page, I found the following errors.

  1. The line
assert(eg.final_approximation()==pybertini.VectorXmp())

produces an error, but can be fixed by inserting minieigen, such as

assert(eg.final_approximation()==pybertini.minieigen.VectorXmp())
  1. When tracking past the endgame boundary, the following runtime error occurs,
RuntimeError: CauchyEG Run time and point must be of matching precision. (16!=20)

The print out before the tracking says that all variables have precision 16. This error I do not know how to fix.

@ofloveandhate
Copy link
Contributor

i thought i solved this error. if it is what i am thinking it is, it was due to a return by value thing in minieigen -- hence the clone i took of minieigen to bertiniteam.

will you ensure that your minieigen points to the bertiniteam fork?

@ofloveandhate
Copy link
Contributor

see #145

@jbcolli2
Copy link
Contributor Author

Sourcetree says I'm pointing to the bertiniteam fork, but my minieigen files are not up to date. Do I need to do some pull to get the latests minieigen commits?

@ofloveandhate
Copy link
Contributor

git submodule update --recursive i think should do it.

@ofloveandhate
Copy link
Contributor

or, maybe this

@ofloveandhate
Copy link
Contributor

one of my students just got the same thing. his clone of minieigen was correct, but line 148 differed from the one here on github, in one file (the one with the return-by-value problem i fixed). calling git pull didn't do anything. for some reason, it wasn't on a branch, but needed to be on master. hence, i edited the .gitmodules file to point to the master branch.

you need to move to the minieigen folder in b2/python and git pull origin master.

@jbcolli2
Copy link
Contributor Author

jbcolli2 commented Jun 12, 2018 via email

@ofloveandhate
Copy link
Contributor

this fix should solve the problem for any fresh clones. i will try it out myself soon. leaving open for a bit til we can confirm the issue is genuinely gone.

@ofloveandhate
Copy link
Contributor

nope, problem persisted. hmm.

@ofloveandhate
Copy link
Contributor

it took me from my last comment til now to solve it. oh, SO. user VonC's solution to Git submodules: Specify a branch/tag did it for me. phew!

i'd love it if you would confirm that a fresh clone of b2 brings for you a clone of bertiniteam/minieigen at master. then i think we can mark this one as solved.

@ofloveandhate
Copy link
Contributor

ok, i think what that does is update the commit. so, when we get to a state where we like minieigen's changes, we bump the commit number. that's what it boils down to.

@jbcolli2
Copy link
Contributor Author

I am still compiling, but I can confirm that with a brand new clone, I see the updated visitor.hpp file in python/minieigen. So I'm fairly confident that this has fixed the problem. Let me compile everything and run it, just to be sure.

@jbcolli2
Copy link
Contributor Author

Confirmed! With a brand new git clone of b2, the endgame tutorial works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants