From 3cb5fcd07a354f03a0bfa581c16c895c05ae3ffe Mon Sep 17 00:00:00 2001 From: connor-krill Date: Fri, 23 Jun 2023 10:47:55 -0400 Subject: [PATCH] Fixes issue #194 - removed duplicate import statement --- docs/code/reliability/form/local_pfn.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/code/reliability/form/local_pfn.py b/docs/code/reliability/form/local_pfn.py index db3584d02..9837b9f52 100644 --- a/docs/code/reliability/form/local_pfn.py +++ b/docs/code/reliability/form/local_pfn.py @@ -6,6 +6,7 @@ """ import numpy as np + def example1(samples=None): g = np.zeros(samples.shape[0]) for i in range(samples.shape[0]): @@ -13,10 +14,9 @@ def example1(samples=None): S = samples[i, 1] g[i] = R - S return g - + def example2(samples=None): - import numpy as np d = 2 beta = 3.0902 g = np.zeros(samples.shape[0]) @@ -30,9 +30,10 @@ def example3(samples=None): for i in range(samples.shape[0]): g[i] = 6.2*samples[i, 0] - samples[i, 1]*samples[i, 2]**2 return g - + + def example4(samples=None): g = np.zeros(samples.shape[0]) for i in range(samples.shape[0]): g[i] = samples[i, 0]*samples[i, 1] - 80 - return g \ No newline at end of file + return g