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.
@@ -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';G=reader_ref;E=compare_floats;D=group;C=cols_curve;A=reader_test;logging.debug(f"compare cols: {D.name}")
73
- if len(A.numeric_col_indexes)!=len(G.numeric_col_indexes):D.error=f"Number Float columns indexes are different: {len(A.numeric_col_indexes)} != {len(G.numeric_col_indexes)}";return
74
- F=[''for A in range(A.cols_count)];K=_A;H=_A
75
- if C and C.type==ReaderCurveParserNameConfig.COL_X:L=C.info[_D];K=A.data[L];H=A.names[L]
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=G.data[B];I=A.names[B];logging.debug(f"compare vector colum: {I}");N=E.thresholds.vectors
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],D,{'info_prefix':H}if H else _A,N,S,T,info_vector=K)
82
- if U:M=True;F[B]=R;continue
83
- if O.total_errors>0:F[B]=f"{O.total_errors} comparison errors"
84
- if C:
85
- for P in C.curves[_E]:
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=C.curves[_B][V]
89
- if F[J[_C]]:J['comparison_error']=F[J[_C]];Q+=1
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
- D.error=R if M else _A;D.info={'cols_has_error':F}
92
+ C.error=R if M else _A;C.info={'cols_has_error':G}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scilens
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary: A CesGensLaB framework for data collecting and deep analysis
5
5
  Home-page: https://scilens.dev
6
6
  License: Proprietary
@@ -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=6F39F7ZjfyTl-Vh57ZLiyHPVMIPPiNdZQ3_KKw1QGpE,4233
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.3.dist-info/METADATA,sha256=o7eu816V4IYfq-KJH6Z8kj1JQ_NfLGlCVvQ0xBCt5PA,1405
126
- scilens-0.5.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
127
- scilens-0.5.3.dist-info/entry_points.txt,sha256=DaKGgxUEUv34GJAoXtta6ecL37ercejep9sCSSRQK2s,48
128
- scilens-0.5.3.dist-info/RECORD,,
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,,