halib 0.1.75__py3-none-any.whl → 0.1.77__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.
halib/research/perftb.py CHANGED
@@ -306,9 +306,18 @@ class PerfTB:
306
306
 
307
307
  # Save and open plot
308
308
  if save_path:
309
- fig.write_image(save_path, engine="kaleido")
309
+ export_success = False
310
+ try:
311
+ fig.write_image(save_path, engine="kaleido")
312
+ export_success = True
310
313
  # pprint(f"Saved: {os.path.abspath(save_path)}")
311
- if open_plot and os.name == "nt": # Windows
314
+ except Exception as e:
315
+ print(f"Error saving plot: {e}")
316
+ pprint(
317
+ "Failed to save plot. Check this link: https://stackoverflow.com/questions/69016568/unable-to-export-plotly-images-to-png-with-kaleido. Maybe you need to downgrade kaleido version to 0.1.* or install it via pip install kaleido==0.1.*"
318
+ )
319
+ return
320
+ if export_success and open_plot and os.name == "nt": # Windows
312
321
  os.system(f'start "" "{os.path.abspath(save_path)}"')
313
322
  return fig
314
323
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -12,8 +12,12 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE.txt
13
13
  Requires-Dist: arrow
14
14
  Requires-Dist: click
15
+ Requires-Dist: dataclass-wizard
15
16
  Requires-Dist: enlighten
17
+ Requires-Dist: itables
18
+ Requires-Dist: kaleido
16
19
  Requires-Dist: loguru
20
+ Requires-Dist: matplotlib
17
21
  Requires-Dist: more-itertools
18
22
  Requires-Dist: moviepy
19
23
  Requires-Dist: networkx
@@ -22,25 +26,20 @@ Requires-Dist: omegaconf
22
26
  Requires-Dist: opencv-python
23
27
  Requires-Dist: pandas
24
28
  Requires-Dist: Pillow
29
+ Requires-Dist: plotly
25
30
  Requires-Dist: Pyarrow
26
31
  Requires-Dist: pycurl
32
+ Requires-Dist: pygwalker
27
33
  Requires-Dist: python-telegram-bot
28
34
  Requires-Dist: requests
29
35
  Requires-Dist: rich
30
36
  Requires-Dist: scikit-learn
31
- Requires-Dist: matplotlib
32
37
  Requires-Dist: seaborn
33
- Requires-Dist: plotly
34
- Requires-Dist: pygwalker
35
38
  Requires-Dist: tabulate
36
- Requires-Dist: itables
37
39
  Requires-Dist: timebudget
38
40
  Requires-Dist: tqdm
39
41
  Requires-Dist: tube_dl
40
42
  Requires-Dist: wandb
41
- Requires-Dist: dataclass-wizard
42
- Requires-Dist: kaleido==0.1.*; sys_platform == "win32"
43
- Requires-Dist: kaleido; sys_platform == "linux"
44
43
  Dynamic: author
45
44
  Dynamic: author-email
46
45
  Dynamic: classifier
@@ -53,7 +52,7 @@ Dynamic: summary
53
52
 
54
53
  Helper package for coding and automation
55
54
 
56
- **Version 0.1.74**
55
+ **Version 0.1.77**
57
56
 
58
57
  + `research/base_exp`: add base experiment class to handle common experiment tasks, including performance calculation and saving results.
59
58
 
@@ -34,7 +34,7 @@ halib/research/benchquery.py,sha256=FuKnbWQtCEoRRtJAfN-zaN-jPiO_EzsakmTOMiqi7GQ,
34
34
  halib/research/dataset.py,sha256=QU0Hr5QFb8_XlvnOMgC9QJGIpwXAZ9lDd0RdQi_QRec,6743
35
35
  halib/research/metrics.py,sha256=Xgv0GUGo-o-RJaBOmkRCRpQJaYijF_1xeKkyYU_Bv4U,5249
36
36
  halib/research/perfcalc.py,sha256=qDa0sqfpWrwGZVJtjuUVFK7JX6j8xyXP9OnnfYmdamg,15898
37
- halib/research/perftb.py,sha256=vazU-dYBJhfc4sK4zFgxOvzeXGi-5TyPHCt20ItiWhY,30463
37
+ halib/research/perftb.py,sha256=FWg0b8wSgy4UwuvHSXwEqvTq1Rhi-z-HtAKuQg1lWc4,30989
38
38
  halib/research/plot.py,sha256=-pDUk4z3C_GnyJ5zWmf-mGMdT4gaipVJWzIgcpIPiRk,9448
39
39
  halib/research/torchloader.py,sha256=yqUjcSiME6H5W210363HyRUrOi3ISpUFAFkTr1w4DCw,6503
40
40
  halib/research/wandb_op.py,sha256=YzLEqME5kIRxi3VvjFkW83wnFrsn92oYeqYuNwtYRkY,4188
@@ -51,8 +51,8 @@ halib/utils/gpu_mon.py,sha256=vD41_ZnmPLKguuq9X44SB_vwd9JrblO4BDzHLXZhhFY,2233
51
51
  halib/utils/listop.py,sha256=Vpa8_2fI0wySpB2-8sfTBkyi_A4FhoFVVvFiuvW8N64,339
52
52
  halib/utils/tele_noti.py,sha256=-4WXZelCA4W9BroapkRyIdUu9cUVrcJJhegnMs_WpGU,5928
53
53
  halib/utils/video.py,sha256=ZqzNVPgc1RZr_T0OlHvZ6SzyBpL7O27LtB86JMbBuR0,3059
54
- halib-0.1.75.dist-info/licenses/LICENSE.txt,sha256=qZssdna4aETiR8znYsShUjidu-U4jUT9Q-EWNlZ9yBQ,1100
55
- halib-0.1.75.dist-info/METADATA,sha256=Hic05vB3hcIpLbNKux1IsnlOUBMVa5smppGOdUQZUzQ,5778
56
- halib-0.1.75.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
57
- halib-0.1.75.dist-info/top_level.txt,sha256=7AD6PLaQTreE0Fn44mdZsoHBe_Zdd7GUmjsWPyQ7I-k,6
58
- halib-0.1.75.dist-info/RECORD,,
54
+ halib-0.1.77.dist-info/licenses/LICENSE.txt,sha256=qZssdna4aETiR8znYsShUjidu-U4jUT9Q-EWNlZ9yBQ,1100
55
+ halib-0.1.77.dist-info/METADATA,sha256=7cKvGq3aQlUuSuUha2q1Sz1eCzfbib9wCFZ3_sRyhik,5697
56
+ halib-0.1.77.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
57
+ halib-0.1.77.dist-info/top_level.txt,sha256=7AD6PLaQTreE0Fn44mdZsoHBe_Zdd7GUmjsWPyQ7I-k,6
58
+ halib-0.1.77.dist-info/RECORD,,
File without changes