Updates:
        Cc: asmeurer ondrej.certik
        Labels: NeedsReview

Comment #2 on issue 1717 by smichr: inconsistency between facts
http://code.google.com/p/sympy/issues/detail?id=1717

A test is being done in facts to see if a value should be added for a  
quantity once
something is known about it and if not, the newly known fact will be added:

                 if k in new_facts:
                     assert new_facts[k] == v, ('inconsitency between
facts',new_facts,k,v)
                     continue
                 else:
                     new_facts[k] = v

The problem appears to be that a value was loaded as None for 'real' so `k`  
is in
new_facts but the newly known value is not None, so the assertion fails.   
Changing
the test to

                 if k in new_facts and new_facts[k] != None:

doesn't fail any tests and it allows the above calculation to succeed.

Chnages are in smichr's github branch, 1717.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--

You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.


Reply via email to