scilens 0.5.3__py3-none-any.whl → 0.5.4__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/readers/cols_dataset.py +14 -13
- {scilens-0.5.3.dist-info → scilens-0.5.4.dist-info}/METADATA +1 -1
- {scilens-0.5.3.dist-info → scilens-0.5.4.dist-info}/RECORD +5 -5
- {scilens-0.5.3.dist-info → scilens-0.5.4.dist-info}/WHEEL +0 -0
- {scilens-0.5.3.dist-info → scilens-0.5.4.dist-info}/entry_points.txt +0 -0
scilens/readers/cols_dataset.py
CHANGED
|
@@ -69,23 +69,24 @@ class ColsDataset:
|
|
|
69
69
|
@dataclass
|
|
70
70
|
class ColsCurves:type:str;info:dict;curves:dict
|
|
71
71
|
def compare(group,compare_floats,reader_test,reader_ref,cols_curve):
|
|
72
|
-
R='Errors limit reached';
|
|
73
|
-
if
|
|
74
|
-
F=
|
|
75
|
-
|
|
72
|
+
R='Errors limit reached';F=reader_ref;E=compare_floats;D=cols_curve;C=group;A=reader_test;logging.debug(f"compare cols: {C.name}")
|
|
73
|
+
if F.names!=A.names:C.error=f"Columns of datasets are different : {F.names} {A.names}";return
|
|
74
|
+
if len(A.numeric_col_indexes)!=len(F.numeric_col_indexes):C.error=f"Number Float columns indexes are different: {len(A.numeric_col_indexes)} != {len(F.numeric_col_indexes)}";return
|
|
75
|
+
G=[''for A in range(A.cols_count)];K=_A;H=_A
|
|
76
|
+
if D and D.type==ReaderCurveParserNameConfig.COL_X:L=D.info[_D];K=A.data[L];H=A.names[L]
|
|
76
77
|
M=False
|
|
77
78
|
for B in range(A.cols_count):
|
|
78
79
|
if B not in A.numeric_col_indexes:continue
|
|
79
|
-
S=A.data[B];T=
|
|
80
|
+
S=A.data[B];T=F.data[B];I=A.names[B];logging.debug(f"compare vector colum: {I}");N=E.thresholds.vectors
|
|
80
81
|
if E.thresholds.vectors_columns and I in E.thresholds.vectors_columns:N=E.thresholds.vectors_columns[I]
|
|
81
|
-
O,U,W=E.add_group_and_compare_vectors(A.names[B],
|
|
82
|
-
if U:M=True;
|
|
83
|
-
if O.total_errors>0:
|
|
84
|
-
if
|
|
85
|
-
for P in
|
|
82
|
+
O,U,W=E.add_group_and_compare_vectors(A.names[B],C,{'info_prefix':H}if H else _A,N,S,T,info_vector=K)
|
|
83
|
+
if U:M=True;G[B]=R;continue
|
|
84
|
+
if O.total_errors>0:G[B]=f"{O.total_errors} comparison errors"
|
|
85
|
+
if D:
|
|
86
|
+
for P in D.curves[_E]:
|
|
86
87
|
Q=0
|
|
87
88
|
for V in P[_B]:
|
|
88
|
-
J=
|
|
89
|
-
if
|
|
89
|
+
J=D.curves[_B][V]
|
|
90
|
+
if G[J[_C]]:J['comparison_error']=G[J[_C]];Q+=1
|
|
90
91
|
P['comparison']={'curves_nb_with_error':Q}
|
|
91
|
-
|
|
92
|
+
C.error=R if M else _A;C.info={'cols_has_error':G}
|
|
@@ -51,7 +51,7 @@ scilens/processors/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
51
51
|
scilens/processors/models/results.py,sha256=KoWxh13Zgi7PuPql8hkf4VjCis42ZxAuzIgJxBWVaX8,119
|
|
52
52
|
scilens/processors/processor_interface.py,sha256=jzMp1529JXnMGTJijVy6b_1zmARAMNv70f2lgys7vn4,452
|
|
53
53
|
scilens/readers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
|
-
scilens/readers/cols_dataset.py,sha256=
|
|
54
|
+
scilens/readers/cols_dataset.py,sha256=KC0EEJaVlMjXH7H7irgWa80tcKcGXsmZSrQVdjtNcGE,4328
|
|
55
55
|
scilens/readers/exceptions.py,sha256=JzmxcjnR5sH-IOWVeCC5A1bSwxv-jCAtIJvDjzx1CTI,32
|
|
56
56
|
scilens/readers/mat_dataset.py,sha256=Z9TYDWaH2aqdniLNDjlpR6VVNHMSARjh52clhdMyOn4,1496
|
|
57
57
|
scilens/readers/reader_csv.py,sha256=ISEjLjMFcRziryZTYyH-Jg4vOtgPVwAH1kgfEQBHVAA,5619
|
|
@@ -122,7 +122,7 @@ scilens/utils/time_tracker.py,sha256=DdVBoMpVLXrX0qZZXyLm4g38EwDVLlRcBqcpNex1mYY
|
|
|
122
122
|
scilens/utils/vectors.py,sha256=4N2BZSC5n3HgZqPujDGF5NdjVmSL1rOHb_qw4OoABQY,103
|
|
123
123
|
scilens/utils/web.py,sha256=MAFWpIFOKz7QhqDoFh-Qwstvc76KpcxstSgHFT8FOL4,901
|
|
124
124
|
scilens/utils/xml.py,sha256=HcB-ymJy8o4lsczHpXznGrbYahq_3cnnkPOdRfWdHfg,461
|
|
125
|
-
scilens-0.5.
|
|
126
|
-
scilens-0.5.
|
|
127
|
-
scilens-0.5.
|
|
128
|
-
scilens-0.5.
|
|
125
|
+
scilens-0.5.4.dist-info/METADATA,sha256=fEncH81h03c7n54j7NjsLy8ujvqsEWFxXrZBXyeuNz4,1405
|
|
126
|
+
scilens-0.5.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
127
|
+
scilens-0.5.4.dist-info/entry_points.txt,sha256=DaKGgxUEUv34GJAoXtta6ecL37ercejep9sCSSRQK2s,48
|
|
128
|
+
scilens-0.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|