|
20 | 20 | from odl.set import Field, LinearSpace, RealNumbers
|
21 | 21 | from odl.space import ProductSpace
|
22 | 22 | from odl.util import (
|
23 |
| - REPR_PRECISION, npy_printoptions, repr_string, signature_string_parts, |
| 23 | + repr_precision, npy_printoptions, repr_string, signature_string_parts, |
24 | 24 | attribute_repr_string, method_repr_string)
|
25 | 25 |
|
26 | 26 | __all__ = ('ScalingOperator', 'ZeroOperator', 'IdentityOperator',
|
@@ -201,7 +201,7 @@ def __repr__(self):
|
201 | 201 | posargs = [self.domain]
|
202 | 202 | optargs = [('scalar', self.scalar, None),
|
203 | 203 | ('range', self.range, self.domain)]
|
204 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 204 | + with npy_printoptions(precision=repr_precision()): |
205 | 205 | inner_parts = signature_string_parts(posargs, optargs)
|
206 | 206 | return repr_string(self.__class__.__name__, inner_parts)
|
207 | 207 |
|
@@ -442,7 +442,7 @@ def __repr__(self):
|
442 | 442 | optargs = [('domain', self.domain,
|
443 | 443 | getattr(self.multiplicand, 'space', None)),
|
444 | 444 | ('range', self.range, self.domain)]
|
445 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 445 | + with npy_printoptions(precision=repr_precision()): |
446 | 446 | inner_parts = signature_string_parts(posargs, optargs)
|
447 | 447 | return repr_string(self.__class__.__name__, inner_parts)
|
448 | 448 |
|
@@ -562,7 +562,7 @@ def __repr__(self):
|
562 | 562 | posargs = [self.domain]
|
563 | 563 | optargs = [('exponent', self.exponent, None),
|
564 | 564 | ('range', self.range, self.domain)]
|
565 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 565 | + with npy_printoptions(precision=repr_precision()): |
566 | 566 | inner_parts = signature_string_parts(posargs, optargs)
|
567 | 567 | return repr_string(self.__class__.__name__, inner_parts)
|
568 | 568 |
|
@@ -703,7 +703,7 @@ def __repr__(self):
|
703 | 703 | optargs = [('domain', self.domain,
|
704 | 704 | getattr(self.vector, 'space', None)),
|
705 | 705 | ('range', self.range, self.domain.field)]
|
706 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 706 | + with npy_printoptions(precision=repr_precision()): |
707 | 707 | inner_parts = signature_string_parts(posargs, optargs)
|
708 | 708 | return repr_string(self.__class__.__name__, inner_parts)
|
709 | 709 |
|
@@ -936,7 +936,7 @@ def __repr__(self):
|
936 | 936 | optargs = [('domain', self.domain,
|
937 | 937 | getattr(self.vector, 'space', None)),
|
938 | 938 | ('range', self.range, RealNumbers())]
|
939 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 939 | + with npy_printoptions(precision=repr_precision()): |
940 | 940 | inner_parts = signature_string_parts(posargs, optargs)
|
941 | 941 | return repr_string(self.__class__.__name__, inner_parts)
|
942 | 942 |
|
@@ -1028,7 +1028,7 @@ def __repr__(self):
|
1028 | 1028 | optargs = [('domain', self.domain, self.range),
|
1029 | 1029 | ('range', self.range,
|
1030 | 1030 | getattr(self.constant, 'space', None))]
|
1031 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 1031 | + with npy_printoptions(precision=repr_precision()): |
1032 | 1032 | inner_parts = signature_string_parts(posargs, optargs)
|
1033 | 1033 | return repr_string(self.__class__.__name__, inner_parts)
|
1034 | 1034 |
|
@@ -1597,7 +1597,7 @@ def __repr__(self):
|
1597 | 1597 | posargs = [self.domain]
|
1598 | 1598 | optargs = [('range', self.range, self.domain.complex_space),
|
1599 | 1599 | ('scalar', self.scalar, 1.0)]
|
1600 |
| - with npy_printoptions(precision=REPR_PRECISION): |
| 1600 | + with npy_printoptions(precision=repr_precision()): |
1601 | 1601 | inner_parts = signature_string_parts(posargs, optargs)
|
1602 | 1602 | return repr_string(self.__class__.__name__, inner_parts)
|
1603 | 1603 |
|
|
0 commit comments