wums 0.1.9__tar.gz → 0.1.10__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.
- {wums-0.1.9 → wums-0.1.10}/PKG-INFO +1 -1
- {wums-0.1.9 → wums-0.1.10}/pyproject.toml +1 -1
- {wums-0.1.9 → wums-0.1.10}/wums/boostHistHelpers.py +20 -2
- {wums-0.1.9 → wums-0.1.10}/wums/plot_tools.py +1 -1
- {wums-0.1.9 → wums-0.1.10}/wums.egg-info/PKG-INFO +1 -1
- {wums-0.1.9 → wums-0.1.10}/README.md +0 -0
- {wums-0.1.9 → wums-0.1.10}/setup.cfg +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/Templates/index.php +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/__init__.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/fitutils.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/fitutilsjax.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/ioutils.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/logging.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/output_tools.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums/tfutils.py +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums.egg-info/SOURCES.txt +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums.egg-info/dependency_links.txt +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums.egg-info/requires.txt +0 -0
- {wums-0.1.9 → wums-0.1.10}/wums.egg-info/top_level.txt +0 -0
|
@@ -528,9 +528,27 @@ def disableAxisFlow(ax, under=False, over=False):
|
|
|
528
528
|
circular=ax.traits.circular,
|
|
529
529
|
)
|
|
530
530
|
|
|
531
|
+
def enableAxisFlow(ax, overflow=True, underflow=True):
|
|
532
|
+
if isinstance(ax, hist.axis.Integer):
|
|
533
|
+
args = [ax.edges[0], ax.edges[-1]]
|
|
534
|
+
elif isinstance(ax, hist.axis.Regular):
|
|
535
|
+
args = [ax.size, ax.edges[0], ax.edges[-1]]
|
|
536
|
+
else:
|
|
537
|
+
args = [ax.edges]
|
|
538
|
+
|
|
539
|
+
return type(ax)(
|
|
540
|
+
*args,
|
|
541
|
+
name=ax.name,
|
|
542
|
+
overflow=overflow,
|
|
543
|
+
underflow=underflow,
|
|
544
|
+
circular=ax.traits.circular,
|
|
545
|
+
)
|
|
531
546
|
|
|
532
|
-
def disableFlow(h, axis_name, under=False, over=False):
|
|
533
|
-
# axes_name can be
|
|
547
|
+
def disableFlow(h, axis_name=None, under=False, over=False):
|
|
548
|
+
# axes_name can be 'None' for all axes, a string or a list of strings with the axis name(s) to disable the flow
|
|
549
|
+
if axis_name is None:
|
|
550
|
+
axis_name = [n for n in h.axes.name]
|
|
551
|
+
|
|
534
552
|
if not isinstance(axis_name, str):
|
|
535
553
|
for var in axis_name:
|
|
536
554
|
if var in h.axes.name:
|
|
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
|