nshutils 0.16.0__py3-none-any.whl → 0.17.0__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.
nshutils/logging.py CHANGED
@@ -19,7 +19,7 @@ def init_python_logging(
19
19
 
20
20
  _lovely_tensors.monkey_patch()
21
21
  except ImportError:
22
- logging.exception(
22
+ logging.info(
23
23
  "Failed to import `lovely_tensors`. Ignoring pretty PyTorch tensor formatting"
24
24
  )
25
25
 
@@ -29,7 +29,7 @@ def init_python_logging(
29
29
 
30
30
  _lovely_numpy.set_config(repr=_lovely_numpy.lovely)
31
31
  except ImportError:
32
- logging.exception(
32
+ logging.info(
33
33
  "Failed to import `lovely_numpy`. Ignoring pretty numpy array formatting"
34
34
  )
35
35
 
@@ -45,11 +45,11 @@ def init_python_logging(
45
45
  autovisualize_arrays=treescope_autovisualize_arrays
46
46
  )
47
47
  else:
48
- logging.exception(
48
+ logging.info(
49
49
  "Treescope setup is only supported in Jupyter notebooks. Skipping."
50
50
  )
51
51
  except ImportError:
52
- logging.exception(
52
+ logging.info(
53
53
  "Failed to import `treescope` or `IPython`. Ignoring `treescope` registration"
54
54
  )
55
55
 
@@ -65,7 +65,7 @@ def init_python_logging(
65
65
 
66
66
  log_handlers.append(RichHandler(rich_tracebacks=rich_tracebacks))
67
67
  except ImportError:
68
- logging.exception(
68
+ logging.info(
69
69
  "Failed to import rich. Falling back to default Python logging."
70
70
  )
71
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshutils
3
- Version: 0.16.0
3
+ Version: 0.17.0
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -4,9 +4,9 @@ nshutils/actsave/__init__.py,sha256=6gJ49011Ad3kS8BejeZRPj7ZyVyIcmX-VKLEmYZyGM8,
4
4
  nshutils/actsave/_loader.py,sha256=fAhD32DrJa4onkYfcwc21YIeGEYzOSXCK_HVo9SZLgQ,4604
5
5
  nshutils/actsave/_saver.py,sha256=-uKMmMKjEErCa8pfLhAW4077GFcUjxr0Qq0PFAnbEOw,10254
6
6
  nshutils/collections.py,sha256=EE_qLd-LrsX5lsyk9GSKh03Q8bhn9CHB3jiEeNj4uF4,5197
7
- nshutils/logging.py,sha256=3NwW2pSoXBktiRWPGtUzs8BrOW8H9ZpfI-8wiLbEnEE,3721
7
+ nshutils/logging.py,sha256=n5v2sNmSj5gKkdjL4avP4OpoUzJb4BVtdDtTm_dzVgM,3696
8
8
  nshutils/snoop.py,sha256=JW2JZg6oZd9WWubOP6ok6GUbh5mIQUOdP_T29iH5RCE,7369
9
9
  nshutils/typecheck.py,sha256=_KtfinRy9A0Dgq78kN5MGGrefvb6jn2tGY6svdLEBAs,4915
10
- nshutils-0.16.0.dist-info/METADATA,sha256=M9Mt17Jj5kzN2JMPyjLA7fLBCFgGtGivhzQ9JBS0IcQ,4117
11
- nshutils-0.16.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- nshutils-0.16.0.dist-info/RECORD,,
10
+ nshutils-0.17.0.dist-info/METADATA,sha256=LF0Opz5cgFBshbBKuAbfAZJd011ceKdA2_sDvCA2qzA,4117
11
+ nshutils-0.17.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ nshutils-0.17.0.dist-info/RECORD,,