Skip to content

Commit 16f541f

Browse files
committed
remove mean for intermagnet plots (temp fix)
1 parent 3d0725f commit 16f541f

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ v0.2.2b1:
2929
2022-11-15 3879436 Remove depreciated (and unneeded) fig.canvas.set_window_title
3030
v0.2.2:
3131
v0.2.3b0:
32+
2023-01-20 0cce33...a750fd heatmap test improvements
33+
2023-01-24 3d0725 remove mean for intermagnet plots (temp fix)

hapiplot/hapiplot.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,6 @@ def hapiplot(*args, **kwargs):
492492
y = np.asarray(data[name])
493493

494494

495-
remove_mean = False
496-
if 'uk/GIN_' in meta['x_server']:
497-
remove_mean = True
498-
y_mean = np.nanmean(y, axis=0)
499-
500495
if 'fill' in meta["parameters"][i] and meta["parameters"][i]['fill']:
501496
if ptype == 'isotime' or ptype == 'string':
502497
Igood = y != meta["parameters"][i]['fill']
@@ -591,19 +586,13 @@ def hapiplot(*args, **kwargs):
591586
if nodata:
592587
col_name = col_name + " [no data in interval]"
593588

594-
if remove_mean:
595-
col_name = "{0:s} - {1:.2f}".format(col_name, y_mean[l])
596-
597589
if 'label' in meta['parameters'][i] and \
598590
type(meta['parameters'][i]['label']) == list and \
599591
len(meta['parameters'][i]['label']) > l and \
600592
meta['parameters'][i]['label'][l].strip() != '':
601593
col_name = meta['parameters'][i]['label'][l]
602594
if nodata:
603595
col_name = col_name + " [no data in interval]"
604-
else:
605-
if remove_mean:
606-
col_name = "{0:s} - {1:.2f}".format(col_name, y_mean[l])
607596

608597
if type(units) == list:
609598
if len(units) == 1:
@@ -645,10 +634,7 @@ def hapiplot(*args, **kwargs):
645634
tsopts['nodata'] = True
646635

647636
with rc_context(rc=opts['rcParams']):
648-
if remove_mean:
649-
fig = timeseries(Time, y-y_mean, **tsopts)
650-
else:
651-
fig = timeseries(Time, y, **tsopts)
637+
fig = timeseries(Time, y, **tsopts)
652638

653639
meta["parameters"][i]['hapiplot']['figure'] = fig
654640

0 commit comments

Comments
 (0)