scilens 0.4.6__py3-none-any.whl → 0.4.7__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/report/report.py CHANGED
@@ -22,7 +22,7 @@ class Report:
22
22
  elif A=='py':text_write(C,'DATA = '+format(D))
23
23
  elif A in['js','ts']:text_write(C,'export default '+json.dumps(D))
24
24
  elif A=='php':text_write(C,'<?php\nreturn '+dict_to_php_array(D)+';\n')
25
- elif A==_A:text_write(C,HtmlReport(B.config,B.alt_config_dirs,B.path).process(processor,D,B.task_name))
25
+ elif A==_A:text_write(C,HtmlReport(B.config,B.alt_config_dirs,B.path).process(processor,D,B.task_name),encoding='utf-8')
26
26
  else:H=I;logging.error(f"Extension {A} not implemented")
27
27
  if H:E.files_created.append(C)
28
28
  if J.output.export_html:logging.info(f"Report generated at file://{B._get_file(_A)}")
scilens/utils/file.py CHANGED
@@ -1,3 +1,4 @@
1
+ _A=None
1
2
  import json,os,shutil,yaml
2
3
  def file_remove(path):
3
4
  if os.path.exists(path):os.remove(path)
@@ -12,22 +13,22 @@ def copy(src,dst):
12
13
  A=src
13
14
  if os.path.isfile(A):file_copy(A,dst)
14
15
  else:dir_copy(A,dst)
15
- def text_write(path,data):
16
- with open(path,'w')as A:A.write(data)
17
- def text_append(path,data):
18
- with open(path,'a')as A:A.write(data)
19
- def text_load(path):
20
- with open(path,'r')as A:return A.read()
21
- def json_write(path,data):
22
- with open(path,'w')as A:json.dump(data,A,indent=4)
23
- def json_write_small(path,data):
24
- with open(path,'w')as A:json.dump(data,A)
25
- def json_load(path):
26
- with open(path)as A:return json.load(A)
27
- def yaml_write(path,data):
28
- with open(path,'w')as A:yaml.dump(data,A,default_flow_style=False)
29
- def yaml_load(path):
30
- with open(path)as A:return yaml.safe_load(A)
16
+ def text_write(path,data,encoding=_A):
17
+ with open(path,'w',encoding=encoding)as A:A.write(data)
18
+ def text_append(path,data,encoding=_A):
19
+ with open(path,'a',encoding=encoding)as A:A.write(data)
20
+ def text_load(path,encoding=_A):
21
+ with open(path,'r',encoding=encoding)as A:return A.read()
22
+ def json_write(path,data,encoding=_A):
23
+ with open(path,'w',encoding=encoding)as A:json.dump(data,A,indent=4)
24
+ def json_write_small(path,data,encoding=_A):
25
+ with open(path,'w',encoding=encoding)as A:json.dump(data,A)
26
+ def json_load(path,encoding=_A):
27
+ with open(path,'r',encoding=encoding)as A:return json.load(A)
28
+ def yaml_write(path,data,encoding=_A):
29
+ with open(path,'w',encoding=encoding)as A:yaml.dump(data,A,default_flow_style=False)
30
+ def yaml_load(path,encoding=_A):
31
+ with open(path,'r',encoding=encoding)as A:return yaml.safe_load(A)
31
32
  def move(source,target):shutil.move(source,target)
32
33
  def list_paths_at_depth(root_dir,depth):
33
34
  B=depth;A=root_dir;C=[]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scilens
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: A CesGensLaB framework for data collecting and deep analysis
5
5
  Home-page: https://scilens.dev
6
6
  License: Proprietary
@@ -63,7 +63,7 @@ scilens/report/assets/logo.svg,sha256=W-1OVqcvdBjf-1AHHcV6WciIUqBoVFUh52Tc3o_jqt
63
63
  scilens/report/assets/logo_cglb.svg,sha256=tEpkSr2h-jjQMecqiHef98Mxod4GD5j5nCQaFloTYso,2411
64
64
  scilens/report/assets.py,sha256=CcfGc9NNGnPVinkHZkEyN2S_BGKNIyMFvVdA__-M6-0,532
65
65
  scilens/report/html_report.py,sha256=ml_paRkzI81irpeWNtEkBOHkK0W7veNU6RbVM6RLM6E,1940
66
- scilens/report/report.py,sha256=aS7ktJ2u0IAMMk-HwqqSsRkr77ZBQyYT4wXJ7djQvAk,1811
66
+ scilens/report/report.py,sha256=E8C4tyMSQd8JbOQU0xC3R0bwPMRc4DS0o3QAq-PvXho,1828
67
67
  scilens/report/template.py,sha256=cPs5gd3uEwb-6JgitGQD_i4IiUxigBTlZLNRS9KVuos,581
68
68
  scilens/report/templates/body_01_title.html,sha256=LJOWO6ImNPW9cg3tCDlgdllVTwnFGWcb2qvA3yv6wNk,1758
69
69
  scilens/report/templates/body_02_tabs.html,sha256=hooRO_OJPwAQSa6GBsPLca-OnpiHkr3wZ_0NoXGKGR0,465
@@ -105,7 +105,7 @@ scilens/run/standalone_task_runner.py,sha256=QYUZ22YPV8hlUFANRcfxy_RXAmwKSfb7glP
105
105
  scilens/run/task_context.py,sha256=NnujvpwnxY-YEzivYPYWaX-YChcZlEXt9y0_DXLqZkk,659
106
106
  scilens/run/tasks_collector.py,sha256=m_FQaJdQRi4fCLW17ryJxU0TvGNJN54JTw2Mg6XPojY,3174
107
107
  scilens/utils/dict.py,sha256=ORdZ_521Em4YjV5S8EqzESi9eM2Dh5CR4JpLbd8JASk,384
108
- scilens/utils/file.py,sha256=ljtTHCvT7vfDSbHA-5aKDl9885SVce3TBXWRIA-aRx0,1664
108
+ scilens/utils/file.py,sha256=nzO7Hb4Xuhi75u43F-LbHESw3YsAnV59nJ23Fq3-7e4,1920
109
109
  scilens/utils/load_model_from_file.py,sha256=k5I-B6s5nVZu90MgzKSM0_IRj9oNL-4oJJRTwEvOyw8,619
110
110
  scilens/utils/php.py,sha256=VBJxpzwwRPNcr3379f6ViwhpTzjGc4BKlSXHv4lnor8,444
111
111
  scilens/utils/system.py,sha256=drXp_Vdv2dP9wFQoEQZIhxyCJhFliBLFPylGwv89FF4,182
@@ -113,7 +113,7 @@ scilens/utils/template.py,sha256=9dlXX3nmfzDRUwzPJOkoxk15UXivZ2SW-McdCwokFa4,443
113
113
  scilens/utils/time_tracker.py,sha256=DdVBoMpVLXrX0qZZXyLm4g38EwDVLlRcBqcpNex1mYY,545
114
114
  scilens/utils/vectors.py,sha256=4N2BZSC5n3HgZqPujDGF5NdjVmSL1rOHb_qw4OoABQY,103
115
115
  scilens/utils/web.py,sha256=MAFWpIFOKz7QhqDoFh-Qwstvc76KpcxstSgHFT8FOL4,901
116
- scilens-0.4.6.dist-info/METADATA,sha256=3W-u6m5qT_81k7TXSNJqbf4RgQOHt2Sj0NQBiJqnS9o,1367
117
- scilens-0.4.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
118
- scilens-0.4.6.dist-info/entry_points.txt,sha256=DaKGgxUEUv34GJAoXtta6ecL37ercejep9sCSSRQK2s,48
119
- scilens-0.4.6.dist-info/RECORD,,
116
+ scilens-0.4.7.dist-info/METADATA,sha256=Q6exfgps2ADhfvgJqlhrQdKbffPAfgrdvGBM47bd9PY,1367
117
+ scilens-0.4.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
118
+ scilens-0.4.7.dist-info/entry_points.txt,sha256=DaKGgxUEUv34GJAoXtta6ecL37ercejep9sCSSRQK2s,48
119
+ scilens-0.4.7.dist-info/RECORD,,