{"action":"created","issue":{"url":"https://api.github.com/repos/bertiniteam/b2/issues/154","repository_url":"https://api.github.com/repos/bertiniteam/b2","labels_url":"https://api.github.com/repos/bertiniteam/b2/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/bertiniteam/b2/issues/154/comments","events_url":"https://api.github.com/repos/bertiniteam/b2/issues/154/events","html_url":"https://github.com/bertiniteam/b2/issues/154","id":333272547,"node_id":"MDU6SXNzdWUzMzMyNzI1NDc=","number":154,"title":"Bug with when homogenizing the variables","user":{"login":"jbcolli2","id":6146603,"node_id":"MDQ6VXNlcjYxNDY2MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/6146603?v=4","gravatar_id":"","url":"https://api.github.com/users/jbcolli2","html_url":"https://github.com/jbcolli2","followers_url":"https://api.github.com/users/jbcolli2/followers","following_url":"https://api.github.com/users/jbcolli2/following{/other_user}","gists_url":"https://api.github.com/users/jbcolli2/gists{/gist_id}","starred_url":"https://api.github.com/users/jbcolli2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbcolli2/subscriptions","organizations_url":"https://api.github.com/users/jbcolli2/orgs","repos_url":"https://api.github.com/users/jbcolli2/repos","events_url":"https://api.github.com/users/jbcolli2/events{/privacy}","received_events_url":"https://api.github.com/users/jbcolli2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-18T13:35:28Z","updated_at":"2018-06-18T16:04:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"There is a bug when running the following code in IPython:\r\n\r\n```\r\nimport pybertini\r\nimport copy\r\n\r\ngw = pybertini.System()\r\n\r\nx = pybertini.Variable(\"x\")\r\ny = pybertini.Variable(\"y\")\r\n\r\nvg = pybertini.VariableGroup()\r\nvg.append(x)\r\nvg.append(y)\r\ngw.add_variable_group(vg)\r\n\r\ngw.add_function((x+2)*(y-3)**6)\r\ngw.add_function((x**2 - 1)*(y-5))\r\n\r\ngw.homogenize()\r\ngw.auto_patch()\r\n\r\nt = pybertini.Variable('t')\r\ntd = pybertini.system.start_system.TotalDegree(gw)\r\ngamma = pybertini.function_tree.symbol.Rational.rand()\r\nhom = (1-t)*gw + t*gamma*td\r\nhom.add_path_variable(t)\r\n\r\n\r\n\r\ntr = pybertini.tracking.AMPTracker(hom)\r\n\r\nstart_time = pybertini.multiprec.Complex(\"1\")\r\neg_boundary = pybertini.multiprec.Complex(\"0.0\")\r\n\r\nmidpath_points = [None]*td.num_start_points()\r\nfor ii in range(td.num_start_points()):\r\n        midpath_points[ii] = pybertini.multiprec.Vector()\r\n        code = tr.track_path(result=midpath_points[ii], start_time=start_time, end_time=eg_boundary, start_point=td.start_point_mp(ii))\r\n\r\n```\r\n\r\n\r\nWhen this code is run in `python3`, the following error occurs,\r\n```\r\nAssertion failed: ((bertini::Precision(x(0))==DoublePrecision() || bertini::Precision(x(0)) == Precision()) && \"precision of input vector must match current working precision of patch during rescaling\"), function RescalePointToFitInPlace, file ./include/bertini2/system/patch.hpp, line 392.\r\nAbort trap: 6\r\n```\r\n\r\nIf the lines\r\n```\r\ngw.homogenize()\r\ngw.auto_patch()\r\n```\r\nare commented out, then no error occurs."},"comment":{"url":"https://api.github.com/repos/bertiniteam/b2/issues/comments/398106517","html_url":"https://github.com/bertiniteam/b2/issues/154#issuecomment-398106517","issue_url":"https://api.github.com/repos/bertiniteam/b2/issues/154","id":398106517,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODEwNjUxNw==","user":{"login":"ofloveandhate","id":1388063,"node_id":"MDQ6VXNlcjEzODgwNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1388063?v=4","gravatar_id":"","url":"https://api.github.com/users/ofloveandhate","html_url":"https://github.com/ofloveandhate","followers_url":"https://api.github.com/users/ofloveandhate/followers","following_url":"https://api.github.com/users/ofloveandhate/following{/other_user}","gists_url":"https://api.github.com/users/ofloveandhate/gists{/gist_id}","starred_url":"https://api.github.com/users/ofloveandhate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofloveandhate/subscriptions","organizations_url":"https://api.github.com/users/ofloveandhate/orgs","repos_url":"https://api.github.com/users/ofloveandhate/repos","events_url":"https://api.github.com/users/ofloveandhate/events{/privacy}","received_events_url":"https://api.github.com/users/ofloveandhate/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T16:04:01Z","updated_at":"2018-06-18T16:04:01Z","author_association":"CONTRIBUTOR","body":"this is part of a larger conversation about precision.  \r\n\r\n* how much automagic should happen with respect to precision?\r\n* should the user be required to make sure that things are all in unison regarding precision?  if not, how do we decide what precision to use when things come in at different precisions?\r\n\r\nthough, i do agree that there is a problem here.  i'll check it out."}}
{"actor":{"display_login":"ofloveandhate"}}