Module Expr Str Assign NameStore Num ImportFrom alias Import alias identifier ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num Assert Call NameLoad Num Num keyword NameLoad keyword Num Assert UnaryOpNot Call NameLoad Num Num keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body For NameStore Call AttributeLoad NameLoad attr Num Num Num body For NameStore Call AttributeLoad NameLoad attr Num Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num Assert UnaryOpNot NameLoad For NameStore Call AttributeLoad NameLoad attr Num Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num Assert UnaryOpNot NameLoad For NameStore Call AttributeLoad NameLoad attr Num BinOpAdd Num NameLoad Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num If UnaryOpNot NameLoad body Print NameLoad Print BinOpAdd NameLoad NameLoad Assert NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body For NameStore Call AttributeLoad NameLoad attr Num Num Num body For NameStore Call AttributeLoad NameLoad attr Num Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num Assert UnaryOpNot NameLoad For NameStore Call AttributeLoad NameLoad attr Num Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num Assert UnaryOpNot NameLoad For NameStore Call AttributeLoad NameLoad attr Num BinOpAdd Num NameLoad Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num If UnaryOpNot NameLoad body Print NameLoad Print BinOpAdd NameLoad NameLoad Assert NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body For NameStore Call AttributeLoad NameLoad attr Num Num Num body For NameStore Call AttributeLoad NameLoad attr Num BinOpMult Num Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num Assert UnaryOpNot NameLoad For NameStore Call AttributeLoad NameLoad attr Num BinOpAdd Num NameLoad Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad keyword Num If UnaryOpNot NameLoad body Print NameLoad Print BinOpAdd NameLoad NameLoad Assert NameLoad decorator_list decorator_list
N/A N/A 
Unit tests for closeAtMSigFigs
 N/A EPS 1e-10 bnpy.util closeAtMSigFigs N/A numpy np TestCloseAtMSigFigs N/A object N/A test_close_at_2_sig_figs_boundary N/A N/A self M N/A 2 N/A N/A N/A closeAtMSigFigs 9.96 9.98 M M tol 5 N/A N/A closeAtMSigFigs 9.96 10.01 M M tol 5 N/A N/A closeAtMSigFigs 9.96 10.46 M M tol 5 N/A N/A N/A closeAtMSigFigs 9.96 10.4601 M M tol 5 N/A test_close_at_2_sig_figs_readable N/A N/A self M N/A 2 N/A N/A N/A closeAtMSigFigs 1.42 1.42 M M tol 5 N/A N/A closeAtMSigFigs 1.42 1.47 M M tol 5 N/A N/A N/A closeAtMSigFigs 1.42 1.4701 M M tol 5 N/A N/A closeAtMSigFigs 1.42 1.37 M M tol 5 N/A N/A N/A closeAtMSigFigs 1.42 1.36999 M M tol 5 N/A N/A closeAtMSigFigs 142000.0 147000.0 M M tol 5 N/A N/A N/A closeAtMSigFigs 142000.0 147010.0 M M tol 5 N/A N/A closeAtMSigFigs 142000.0 137000.0 M M tol 5 N/A N/A N/A closeAtMSigFigs 142000.0 136990.0 M M tol 5 N/A N/A closeAtMSigFigs -142.0 -147.0 M M tol 5 N/A N/A N/A closeAtMSigFigs -142.0 -147.01 M M tol 5 N/A N/A closeAtMSigFigs -142.0 -137.0 M M tol 5 N/A N/A N/A closeAtMSigFigs -142.0 -136.9999 M M tol 5 N/A test_close_at_2_sig_figs_exhaustive N/A N/A self M N/A 2 N/A N/A a N/A N/A np arange -9.0 9.0 0.01 N/A N/A offset N/A N/A np arange 0.05000001 0.1 0.01 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A offset N/A N/A np arange -0.05000001 -0.1 -0.01 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A offset N/A N/A np arange -0.05 N/A 0.05 EPS 0.01 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A N/A a N/A N/A a offset N/A isEqual N/A test_close_at_3_sig_figs_exhaustive N/A N/A self M N/A 3 N/A N/A a N/A N/A np arange -9.0 9.0 0.01 N/A N/A offset N/A N/A np arange 0.005000001 0.01 0.001 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A offset N/A N/A np arange -0.005000001 -0.01 -0.001 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A offset N/A N/A np arange -0.005 N/A 0.005 EPS 0.001 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A N/A a N/A N/A a offset N/A isEqual N/A test_close_at_6_sig_figs_exhaustive N/A N/A self M N/A 6 N/A N/A a N/A N/A np arange -9.0 9.0 0.01 N/A N/A offset N/A N/A np arange 5.000001e-06 N/A 2 5.000001e-06 1e-06 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A offset N/A N/A np arange -5e-06 N/A 5e-06 EPS 1e-06 N/A N/A isEqual N/A closeAtMSigFigs a N/A a offset M M tol 5 N/A N/A isEqual N/A N/A a N/A N/A a offset N/A isEqual N/A N/A