scilens 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl
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.
- scilens/components/compare_errors.py +10 -6
- scilens/components/compare_floats.py +1 -1
- {scilens-0.3.2.dist-info → scilens-0.3.3.dist-info}/METADATA +1 -1
- {scilens-0.3.2.dist-info → scilens-0.3.3.dist-info}/RECORD +6 -6
- {scilens-0.3.2.dist-info → scilens-0.3.3.dist-info}/WHEEL +0 -0
- {scilens-0.3.2.dist-info → scilens-0.3.3.dist-info}/entry_points.txt +0 -0
|
@@ -11,12 +11,16 @@ class CompareErrors:
|
|
|
11
11
|
if not B:A.root_group=C
|
|
12
12
|
A.groups.append(C);return id,C
|
|
13
13
|
def add(A,group,comp_res,info=_A):
|
|
14
|
-
|
|
15
|
-
if A.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if A.
|
|
14
|
+
G=True;D=comp_res;B=group
|
|
15
|
+
if A.limit_reached:
|
|
16
|
+
if not B.error:B.error=f"Limit errors reached ({A.nb_max})"
|
|
17
|
+
return G
|
|
18
|
+
E=D.severity;F=D.message;H=D.comp_err
|
|
19
|
+
if A.ignore_warnings and E==SEVERITY_WARNING:return _B
|
|
20
|
+
A.count+=1;C=A._messages_map.get(F)
|
|
21
|
+
if C is _A:C=len(A.messages);A.messages.append(F);A._messages_map[F]=C
|
|
22
|
+
A.errors[E].append(CompareErr(err=H,msg=C,group=B.id,info=info));B.incr(E)
|
|
23
|
+
if A.count>=A.nb_max:B.error=f"Limit errors reached ({A.nb_max})";A.limit_reached=G;return G
|
|
20
24
|
def get_data(B):
|
|
21
25
|
D=[{'id':A.id,'type':A.type,'name':A.name,'error':A.error,'total_diffs':A.total_diffs,'total_warnings':A.total_warnings,'total_errors':A.total_errors,'data':A.data,'info':A.info,'parent_id':A.parent.id if A.parent else _A}for A in B.groups];A={'messages':B.messages,'groups':D}
|
|
22
26
|
for(C,E)in B.errors.items():A[C]=[A.model_dump()for A in E];A[C+'_nb']=len(A[C])
|
|
@@ -62,7 +62,7 @@ class CompareFloats:
|
|
|
62
62
|
for j in range(test_nb_columns):
|
|
63
63
|
diff=test_mat[i][j]-ref_mat[i][j]
|
|
64
64
|
if diff==0:continue
|
|
65
|
-
else:diffs_count+=1
|
|
65
|
+
else:diffs_count+=1;group.incr('diff')
|
|
66
66
|
if err_limit_reached:continue
|
|
67
67
|
res_compare=self.compare_2_values(test_mat[i][j],ref_mat[i][j])
|
|
68
68
|
if res_compare:
|
|
@@ -9,8 +9,8 @@ scilens/cli/main.py,sha256=LljcS0s2E35y4YZpV01GhMhMK9HyRRHYmxc_q_kSurI,6004
|
|
|
9
9
|
scilens/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
scilens/components/analyse_folder.py,sha256=yqc-dscKaHLZJCYeXGak2v0c3F2aeX0E11AFPfya6r0,208
|
|
11
11
|
scilens/components/compare_2_files.py,sha256=U4xumE28ijFbnrTPH8FgRyR_b5f04jOjaCmegJvCvSE,1483
|
|
12
|
-
scilens/components/compare_errors.py,sha256=
|
|
13
|
-
scilens/components/compare_floats.py,sha256=
|
|
12
|
+
scilens/components/compare_errors.py,sha256=vGb4DWP89HMIeBm0dZU2nt-ksppAs_37xtCHaPd0w5Y,1640
|
|
13
|
+
scilens/components/compare_floats.py,sha256=p1lnnwkGJXIsb6Y5psQc_5FcOuB2vP_cIQHXhZjWPXc,5617
|
|
14
14
|
scilens/components/compare_folders.py,sha256=LZ1AuYxLVHMNbtXWXQrdms4vZgOQthvDy-8NFD_EFjc,2617
|
|
15
15
|
scilens/components/compare_models.py,sha256=SCPd747h_nd4ewZsqLB6CFr27v6q99NELJb-gpkdj0o,918
|
|
16
16
|
scilens/components/executor.py,sha256=j5xejkCaaPyl3V38Q4HxxXcAx4Tnj8CILAjSJ1G7OIE,3417
|
|
@@ -97,7 +97,7 @@ scilens/utils/template.py,sha256=9dlXX3nmfzDRUwzPJOkoxk15UXivZ2SW-McdCwokFa4,443
|
|
|
97
97
|
scilens/utils/time_tracker.py,sha256=DdVBoMpVLXrX0qZZXyLm4g38EwDVLlRcBqcpNex1mYY,545
|
|
98
98
|
scilens/utils/vectors.py,sha256=4N2BZSC5n3HgZqPujDGF5NdjVmSL1rOHb_qw4OoABQY,103
|
|
99
99
|
scilens/utils/web.py,sha256=MAFWpIFOKz7QhqDoFh-Qwstvc76KpcxstSgHFT8FOL4,901
|
|
100
|
-
scilens-0.3.
|
|
101
|
-
scilens-0.3.
|
|
102
|
-
scilens-0.3.
|
|
103
|
-
scilens-0.3.
|
|
100
|
+
scilens-0.3.3.dist-info/METADATA,sha256=EWuw4LVn0kwm5tzOIdtA5Ayg-2M3Tm8fgeiHFi7-jbo,1367
|
|
101
|
+
scilens-0.3.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
102
|
+
scilens-0.3.3.dist-info/entry_points.txt,sha256=DaKGgxUEUv34GJAoXtta6ecL37ercejep9sCSSRQK2s,48
|
|
103
|
+
scilens-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|