File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99"""
1010
11+ import matplotlib
1112import matplotlib .pylab as plt
1213import numpy as np
1314
@@ -52,6 +53,13 @@ def savefig(fname, close_fig=True):
5253 plt .close ()
5354
5455
56+ def show ():
57+ backend = matplotlib .get_backend ()
58+ if 'inline' in backend .lower () or 'nbagg' in backend .lower ():
59+ plt .show () # Works in notebooks
60+ plt .close ()
61+
62+
5563def dx (idx , nx = 3 , fx = 1.025 , log = True ):
5664 """Dx.
5765
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " cs_util"
3- version = " 0.1.2 "
3+ version = " 0.1.3 "
44description = " Utility library for CosmoStat"
55authors = [" Martin Kilbinger <martin.kilbinger@cea.fr>" ]
66readme = " README.md"
77
88[tool .poetry .dependencies ]
99python = " >=3.9,<3.13"
1010astropy = " ^5.0"
11- camb = " 1.5.4"
1211datetime = " ^5.5"
1312numpy = " ^1.26.4"
1413matplotlib = " ^3.8.4"
@@ -17,6 +16,7 @@ scipy = "^1.13.0"
1716vos = " ^3.6.1"
1817keyring = " ^25.2.0"
1918pyccl = " ^3.0.2"
19+ camb = " ^1.5.9"
2020
2121[tool .poetry .dev-dependencies ]
2222pytest = " ^6.2.5"
You can’t perform that action at this time.
0 commit comments