From af66bdffb36f95fcf38e3208218ec2ec87e9c03b Mon Sep 17 00:00:00 2001 From: ghadialhajj Date: Thu, 7 Dec 2023 14:46:53 +0100 Subject: [PATCH] Format code in Stratify --- .../tutorials/selection_and_stratification.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/source/tutorials/selection_and_stratification.rst b/docs/source/tutorials/selection_and_stratification.rst index e0a7fc8..d39e9a4 100644 --- a/docs/source/tutorials/selection_and_stratification.rst +++ b/docs/source/tutorials/selection_and_stratification.rst @@ -115,13 +115,13 @@ The following code shows an example where the samples are split into three categ def check_strata(node): - if node < -1: - return "<-1" - else: - if node > 1: - return ">1" - else: - return ">-1|<+1" + if node < -1: + return "<-1" + else: + if node > 1: + return ">1" + else: + return ">-1|<+1" A = ds.Node(name="A", function=np.random.normal)