iita-python 1.4.1__tar.gz → 1.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iita_python
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: IITA algorithm in python
5
5
  Author-email: Aliaksei Badnarchuk <alexejbodnarchuk@gmail.com>
6
6
  Requires-Python: >=3.9
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '1.4.1'
22
- __version_tuple__ = version_tuple = (1, 4, 1)
21
+ __version__ = version = '1.4.2'
22
+ __version_tuple__ = version_tuple = (1, 4, 2)
23
23
 
24
- __commit_id__ = commit_id = 'gbd4c17f18'
24
+ __commit_id__ = commit_id = 'g07488e250'
@@ -52,7 +52,7 @@ class QuasiOrder:
52
52
  knowledge_space_matrix = ((masks[:, None] & bits) != 0).astype(np.int_)
53
53
  return knowledge_space_matrix
54
54
 
55
- def ind_gen(counterexamples: pd.DataFrame, n: int) -> list[QuasiOrder]:
55
+ def ind_gen(counterexamples: pd.DataFrame) -> list[QuasiOrder]:
56
56
  """
57
57
  Inductively generates quasiorders from counterexample count DataFrame\n
58
58
  """
@@ -83,6 +83,7 @@ def ind_gen(counterexamples: pd.DataFrame, n: int) -> list[QuasiOrder]:
83
83
  queue = np.concat([group, long_queue], axis=0)
84
84
  queue = np.array(sorted(queue.tolist()), dtype=np.int_)
85
85
  allow = np.ones((len(queue)))
86
+ long_queue = np.empty((0, 2), dtype=np.int_)
86
87
 
87
88
  for a, b in queue:
88
89
  new_qo[a][b] = 1
@@ -99,7 +100,7 @@ def ind_gen(counterexamples: pd.DataFrame, n: int) -> list[QuasiOrder]:
99
100
 
100
101
  if (allow.sum() == len(allow)): break
101
102
 
102
- long_queue = queue[np.logical_not(allow)].copy()
103
+ long_queue = np.concat((long_queue, queue[np.logical_not(allow)].copy()), axis=0)
103
104
  queue = queue[allow.astype(np.bool)].copy()
104
105
  allow = allow[allow.astype(np.bool)].copy()
105
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iita_python
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: IITA algorithm in python
5
5
  Author-email: Aliaksei Badnarchuk <alexejbodnarchuk@gmail.com>
6
6
  Requires-Python: >=3.9
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes