halib 0.1.82__tar.gz → 0.1.83__tar.gz

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.
Files changed (50) hide show
  1. {halib-0.1.82 → halib-0.1.83}/PKG-INFO +2 -2
  2. {halib-0.1.82 → halib-0.1.83}/README.md +1 -1
  3. {halib-0.1.82 → halib-0.1.83}/halib/research/profiler.py +7 -6
  4. {halib-0.1.82 → halib-0.1.83}/halib.egg-info/PKG-INFO +2 -2
  5. {halib-0.1.82 → halib-0.1.83}/setup.py +1 -1
  6. {halib-0.1.82 → halib-0.1.83}/.gitignore +0 -0
  7. {halib-0.1.82 → halib-0.1.83}/GDriveFolder.txt +0 -0
  8. {halib-0.1.82 → halib-0.1.83}/LICENSE.txt +0 -0
  9. {halib-0.1.82 → halib-0.1.83}/MANIFEST.in +0 -0
  10. {halib-0.1.82 → halib-0.1.83}/guide_publish_pip.pdf +0 -0
  11. {halib-0.1.82 → halib-0.1.83}/halib/__init__.py +0 -0
  12. {halib-0.1.82 → halib-0.1.83}/halib/common.py +0 -0
  13. {halib-0.1.82 → halib-0.1.83}/halib/cuda.py +0 -0
  14. {halib-0.1.82 → halib-0.1.83}/halib/filetype/__init__.py +0 -0
  15. {halib-0.1.82 → halib-0.1.83}/halib/filetype/csvfile.py +0 -0
  16. {halib-0.1.82 → halib-0.1.83}/halib/filetype/jsonfile.py +0 -0
  17. {halib-0.1.82 → halib-0.1.83}/halib/filetype/textfile.py +0 -0
  18. {halib-0.1.82 → halib-0.1.83}/halib/filetype/videofile.py +0 -0
  19. {halib-0.1.82 → halib-0.1.83}/halib/filetype/yamlfile.py +0 -0
  20. {halib-0.1.82 → halib-0.1.83}/halib/online/__init__.py +0 -0
  21. {halib-0.1.82 → halib-0.1.83}/halib/online/gdrive.py +0 -0
  22. {halib-0.1.82 → halib-0.1.83}/halib/online/gdrive_mkdir.py +0 -0
  23. {halib-0.1.82 → halib-0.1.83}/halib/online/gdrive_test.py +0 -0
  24. {halib-0.1.82 → halib-0.1.83}/halib/online/projectmake.py +0 -0
  25. {halib-0.1.82 → halib-0.1.83}/halib/research/__init__.py +0 -0
  26. {halib-0.1.82 → halib-0.1.83}/halib/research/base_config.py +0 -0
  27. {halib-0.1.82 → halib-0.1.83}/halib/research/base_exp.py +0 -0
  28. {halib-0.1.82 → halib-0.1.83}/halib/research/dataset.py +0 -0
  29. {halib-0.1.82 → halib-0.1.83}/halib/research/metrics.py +0 -0
  30. {halib-0.1.82 → halib-0.1.83}/halib/research/perfcalc.py +0 -0
  31. {halib-0.1.82 → halib-0.1.83}/halib/research/perftb.py +0 -0
  32. {halib-0.1.82 → halib-0.1.83}/halib/research/plot.py +0 -0
  33. {halib-0.1.82 → halib-0.1.83}/halib/research/torchloader.py +0 -0
  34. {halib-0.1.82 → halib-0.1.83}/halib/research/wandb_op.py +0 -0
  35. {halib-0.1.82 → halib-0.1.83}/halib/rich_color.py +0 -0
  36. {halib-0.1.82 → halib-0.1.83}/halib/system/__init__.py +0 -0
  37. {halib-0.1.82 → halib-0.1.83}/halib/system/cmd.py +0 -0
  38. {halib-0.1.82 → halib-0.1.83}/halib/system/filesys.py +0 -0
  39. {halib-0.1.82 → halib-0.1.83}/halib/utils/__init__.py +0 -0
  40. {halib-0.1.82 → halib-0.1.83}/halib/utils/dataclass_util.py +0 -0
  41. {halib-0.1.82 → halib-0.1.83}/halib/utils/dict_op.py +0 -0
  42. {halib-0.1.82 → halib-0.1.83}/halib/utils/gpu_mon.py +0 -0
  43. {halib-0.1.82 → halib-0.1.83}/halib/utils/listop.py +0 -0
  44. {halib-0.1.82 → halib-0.1.83}/halib/utils/tele_noti.py +0 -0
  45. {halib-0.1.82 → halib-0.1.83}/halib/utils/video.py +0 -0
  46. {halib-0.1.82 → halib-0.1.83}/halib.egg-info/SOURCES.txt +0 -0
  47. {halib-0.1.82 → halib-0.1.83}/halib.egg-info/dependency_links.txt +0 -0
  48. {halib-0.1.82 → halib-0.1.83}/halib.egg-info/requires.txt +0 -0
  49. {halib-0.1.82 → halib-0.1.83}/halib.egg-info/top_level.txt +0 -0
  50. {halib-0.1.82 → halib-0.1.83}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.82
3
+ Version: 0.1.83
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -52,7 +52,7 @@ Dynamic: summary
52
52
 
53
53
  Helper package for coding and automation
54
54
 
55
- **Version 0.1.82**
55
+ **Version 0.1.83**
56
56
 
57
57
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
58
58
 
@@ -1,6 +1,6 @@
1
1
  Helper package for coding and automation
2
2
 
3
- **Version 0.1.82**
3
+ **Version 0.1.83**
4
4
 
5
5
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
6
6
 
@@ -170,7 +170,7 @@ class zProfiler:
170
170
  @classmethod
171
171
  @classmethod
172
172
  def plot_formatted_data(
173
- cls, profiler_data, outdir=None, file_format="png", do_show=False
173
+ cls, profiler_data, outdir=None, file_format="png", do_show=False, tag=""
174
174
  ):
175
175
  """
176
176
  Plot each context in a separate figure with bar + pie charts.
@@ -238,10 +238,10 @@ class zProfiler:
238
238
  row=1,
239
239
  col=2,
240
240
  )
241
-
241
+ tag_str = f"[{tag}] " if tag else ""
242
242
  # Layout
243
243
  fig.update_layout(
244
- title_text=f"Context Profiler: {ctx}",
244
+ title_text=f"[{tag_str}Context Profiler: {ctx}",
245
245
  width=1000,
246
246
  height=400,
247
247
  showlegend=True,
@@ -258,7 +258,8 @@ class zProfiler:
258
258
 
259
259
  # Save figure
260
260
  if outdir is not None:
261
- file_path = os.path.join(outdir, f"{ctx}_summary.{file_format.lower()}")
261
+ file_prefix = {ctx} if len(tag_str) == 0 else f"{tag_str}_{ctx}"
262
+ file_path = os.path.join(outdir, f"{file_prefix}_summary.{file_format.lower()}")
262
263
  fig.write_image(file_path)
263
264
  print(f"Saved figure: {file_path}")
264
265
 
@@ -266,7 +267,7 @@ class zProfiler:
266
267
 
267
268
  return results
268
269
 
269
- def report_and_plot(self, outdir=None, file_format="png", do_show=False):
270
+ def report_and_plot(self, outdir=None, file_format="png", do_show=False, tag=""):
270
271
  """
271
272
  Generate the profiling report and plot the formatted data.
272
273
 
@@ -278,7 +279,7 @@ class zProfiler:
278
279
  report = self.get_report_dict()
279
280
  self.get_report_dict(with_detail=False)
280
281
  return self.plot_formatted_data(
281
- report, outdir=outdir, file_format=file_format, do_show=do_show
282
+ report, outdir=outdir, file_format=file_format, do_show=do_show, tag=tag
282
283
  )
283
284
  def meta_info(self):
284
285
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: halib
3
- Version: 0.1.82
3
+ Version: 0.1.83
4
4
  Summary: Small library for common tasks
5
5
  Author: Hoang Van Ha
6
6
  Author-email: hoangvanhauit@gmail.com
@@ -52,7 +52,7 @@ Dynamic: summary
52
52
 
53
53
  Helper package for coding and automation
54
54
 
55
- **Version 0.1.82**
55
+ **Version 0.1.83**
56
56
 
57
57
  + `research/profiler`: add `zProfiler` class to measure execution time of contexts and steps, with support for dynamic color scales in plots.
58
58
 
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="halib",
11
- version="0.1.82",
11
+ version="0.1.83",
12
12
  author="Hoang Van Ha",
13
13
  author_email="hoangvanhauit@gmail.com",
14
14
  description="Small library for common tasks",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes