aboutsummaryrefslogtreecommitdiffstats
path: root/plot_sens.py
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2019-04-12 14:42:58 +0100
committershivesh <s.p.mandalia@qmul.ac.uk>2019-04-12 14:42:58 +0100
commit8c4f4b9eaf4408ad9bb46e924226da9dfb00fdb8 (patch)
tree3a76e79338f53a0533c8c32f7f58d935d0e2d772 /plot_sens.py
parent6d6257ab94403134d857fa5443097355c0be786c (diff)
downloadGolemFlavor-8c4f4b9eaf4408ad9bb46e924226da9dfb00fdb8.tar.gz
GolemFlavor-8c4f4b9eaf4408ad9bb46e924226da9dfb00fdb8.zip
refactor plotting
Diffstat (limited to 'plot_sens.py')
-rwxr-xr-xplot_sens.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/plot_sens.py b/plot_sens.py
index f7179d8..b68cb5d 100755
--- a/plot_sens.py
+++ b/plot_sens.py
@@ -69,7 +69,7 @@ def parse_args(args=None):
)
parser.add_argument(
'--source-ratios', type=int, nargs='*', default=[1, 2, 0],
- help='Set the source flavour ratios for the case when you want to fix it'
+ help='Set the source flavour ratios'
)
parser.add_argument(
'--texture', type=partial(enum_parse, c=Texture),
@@ -165,13 +165,13 @@ def main():
continue
data = ma.masked_invalid(statistic_arr)
+ argsc = deepcopy(args)
print 'data', data
if args.plot_statistic:
print 'Plotting statistic'
for idim, dim in enumerate(args.dimensions):
- argsc = deepcopy(args)
argsc.dimension = dim
# Array of scales to scan over.
@@ -211,7 +211,6 @@ def main():
if args.plot_x:
for idim, dim in enumerate(args.dimensions):
- argsc = deepcopy(args)
argsc.dimension = dim
plot_utils.plot_x(
data = data,