示例1 deftest_eval_approx_relative():CRootOf.clear_cache()t=[CRootOf(x**3+10*x+1,i)foriinrange(3)]assert[i.eval_rational(1e-1)foriint]==[-21/220,15/256-805*I/256,15/256+805*I/256]t[0]._reset()assert[i.eval_rational(1e-1,1e-4)foriint]==[-21/220,3275/65536-4...
id(cached_box.box))self.assertTrue(isinstance(repr(cached_box),str))# Test creation with memorized objectcached_box_2=self.mem.cache(cached_box)self
Method/Function: clear_pssm_cache 导入包: biopsy 每个示例代码都附有代码来源和完整的源代码,希望对您的程序开发有帮助。 示例1 def gen_pseudo_counts(): for pseudo_count in [ 0.00, 0.01, 0.10, 0.25, 0.50, 0.75, 1.00, ]: biopsy.PssmParameters.singleton().pseudo_counts = pseudo_count biopsy....