Skip to content

Commit 5582274

Browse files
committed
renamed the LArray class as Array -> larray/extra
1 parent daa5327 commit 5582274

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

larray/extra/ipfp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import math
22
from collections import deque
33

4-
from larray.core.array import LArray, aslarray, ones, any
4+
from larray.core.array import Array, aslarray, ones, any
55
import numpy as np
66

77

@@ -81,23 +81,23 @@ def ipfp(target_sums, a=None, axes=None, maxiter=1000, threshold=0.5, stepstoabo
8181
8282
Returns
8383
-------
84-
LArray
84+
Array
8585
8686
Examples
8787
--------
8888
>>> from larray import *
8989
>>> a = Axis('a=a0,a1')
9090
>>> b = Axis('b=b0,b1')
91-
>>> initial = LArray([[2, 1], [1, 2]], [a, b])
91+
>>> initial = Array([[2, 1], [1, 2]], [a, b])
9292
>>> initial
9393
a\b b0 b1
9494
a0 2 1
9595
a1 1 2
96-
>>> target_sum_along_a = LArray([2, 1], b)
96+
>>> target_sum_along_a = Array([2, 1], b)
9797
>>> target_sum_along_a
9898
b b0 b1
9999
2 1
100-
>>> target_sum_along_b = LArray([1, 2], a)
100+
>>> target_sum_along_b = Array([1, 2], a)
101101
>>> target_sum_along_b
102102
a a0 a1
103103
1 2
@@ -186,7 +186,7 @@ def has_anonymous_axes(a):
186186
else:
187187
# TODO: only make a copy if there are actually any bad values, but I am unsure we should make a copy at all.
188188
# Either way, this should be documented.
189-
if nzvzs in {'warn', 'fix'} and isinstance(a, LArray):
189+
if nzvzs in {'warn', 'fix'} and isinstance(a, Array):
190190
a = a.copy()
191191
else:
192192
a = aslarray(a)

0 commit comments

Comments
 (0)