lalitkumarj / OMSCategory

Sage Category implementation of OMS
1 stars 1 forks source link

bug in solve_diff_eqn for families #41

Closed rpollack9974 closed 11 years ago

rpollack9974 commented 11 years ago

Sorry to keep piling it on...

sage: DD = FamiliesOfOverconvergentDistributions(0, base_coeffs=ZpCA(p, 6), prec_cap=[6,4]) sage: mu = DD.random_element() sage: mu._moments[0] = 0 sage: mu.solve_diff_eqn()


TypeError Traceback (most recent call last)

in () ----> 1 mu.solve_diff_eqn() /Applications/sage-5.7/local/lib/python2.7/site-packages/sage/modular/pollack_stevens/coeffmod_OMS_families_element.pyc in solve_diff_eqn(self) 478 def solve_diff_eqn(self): 479 #Do something about ordp --> 480 if self.is_zero(): 481 M, var_prec = self.precision_absolute() 482 V = self.parent().approx_module(0, var_prec) /Applications/sage-5.7/local/lib/python2.7/site-packages/sage/modular/pollack_stevens/coeffmod_OMS_families_element.pyc in is_zero(self, prec) 278 elif prec[0] > aprec or prec[1] > v_aprec: 279 return False #Should this raise a PrecisionError instead --> 280 p_precs = self.parent().filtration_precisions(prec) 281 for a in xrange(prec): 282 if not self._unscaled_moment(a)._is_zero_padic_power_series([p_precs[a], prec[1]]): /Applications/sage-5.7/local/lib/python2.7/site-packages/sage/misc/cachefunc.so in sage.misc.cachefunc.CachedMethodCaller.**call** (sage/misc/cachefunc.c:7197)() TypeError: unhashable type: 'list'
rharron commented 11 years ago

This is the same as the bug I just fixed in #37, so it should work with the new code.