Re: [Pymag-devel] TypeError: unsupported operand
Status: Alpha
Brought to you by:
lhj
From: BP <bp...@po...> - 2010-08-30 12:01:35
|
After further investigation it seems that some cell elements koords are not discretized When entering get_best_cell with good walues (all values are integer): Get_Best_Cell max_cell_level: 3 bounds: Rec((1806231,-5393593),(2518935,-4680889)) r: Rec((2255666,-5357273),(2257702,-5355556)) Get_Best_Cell i: 8 Get_Best_Cell v: 89088 h: 89088 Get_Best_Cell n: 0 s: 0 w: 5 e: 5 When exception occures the input values are float: Get_Best_Cell max_cell_level: 3 bounds: Rec((1795075.0,-5395331.0),(2540347.0,-4650059.0)) r: Rec((2154286.0,-5316756.0),(2154286.0,-5316756.0)) Get_Best_Cell i: 8 Get_Best_Cell v: 93159.0 h: 93159.0 Get_Best_Cell n: 0.843450444938 s: 0.843450444938 w: 3.85589154027 e: 3.85589154027 Traceback (most recent call last): ... Peter |