aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/plot_sens.py
diff options
context:
space:
mode:
authorShivesh Mandalia <shivesh.mandalia@outlook.com>2020-03-01 23:23:21 +0000
committerShivesh Mandalia <shivesh.mandalia@outlook.com>2020-03-01 23:23:21 +0000
commit059f6ec9ead0c34004c98af0ef58565b2d410e93 (patch)
treea1faa98c431f8513bae63f5c1a951bac37e1286e /scripts/plot_sens.py
parentbd23e7cdec7e8c70ac4feeb77b21cfcf2c775f3c (diff)
downloadGolemFlavor-059f6ec9ead0c34004c98af0ef58565b2d410e93.tar.gz
GolemFlavor-059f6ec9ead0c34004c98af0ef58565b2d410e93.zip
Add example notebooks to show how to use GolemFlavor
Diffstat (limited to 'scripts/plot_sens.py')
-rw-r--r--scripts/plot_sens.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/plot_sens.py b/scripts/plot_sens.py
index a7b9b28..e999728 100644
--- a/scripts/plot_sens.py
+++ b/scripts/plot_sens.py
@@ -33,7 +33,7 @@ MASK_X = (0.3, 0.7)
def process_args(args):
"""Process the input args."""
if args.data is not DataType.REAL:
- args.injected_ratio = fr_utils.normalise_fr(args.injected_ratio)
+ args.injected_ratio = fr_utils.normalize_fr(args.injected_ratio)
# Anon points
anon = []
@@ -73,7 +73,7 @@ def process_args(args):
srs = [args.source_ratios[3*x:3*x+3]
for x in range(int(len(args.source_ratios)/3))]
- args.source_ratios = map(fr_utils.normalise_fr, srs)
+ args.source_ratios = map(fr_utils.normalize_fr, srs)
elif args.x_segments is not None:
x_array = np.linspace(0, 1, args.x_segments)
sources = []
@@ -275,7 +275,7 @@ def main():
outfile = baseoutfile + '/hese_x_DIM{0}'.format(dim),
outformat = ['png', 'pdf'],
args = argsc,
- normalise = True
+ normalize = True
)
if args.plot_table: