Skip to content

Commit

Permalink
Update CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed May 21, 2024
1 parent 659f1f0 commit e4ebc56
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/cmp_rt2bl.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ def plot_results(file_BL,file_RT):
y1 = SCM_BL[var][:]
y2 = SCM_RT[var][:]
# endif
plt_range = [np.min(SCM_BL[var]),np.max(SCM_BL[var])]
plt_ranged = [-1*abs(np.max(SCM_BL[var])),abs(np.max(SCM_BL[var]))]
print("var: ",var)
print("x1: ",x1)
print("x2: ",x2)
print("y1: ",y1)
print("y2: ",y2)

# Make figure
fig = plt.figure(figsize=(13,10))
Expand All @@ -101,15 +94,13 @@ def plot_results(file_BL,file_RT):
plt.title(SCM_BL[var].description)
plt.plot(x1, y1, color='blue')
plt.plot(x2, y2, color='black')
plt.ylim(plt_range)
plt.ylabel('('+SCM_BL[var].units+')')
plt.xlabel('(hours)')
# Difference (Baseline-SCMRT)
plt.subplot(2,1,2)
plt.title("Difference (blue - black)")
plt.plot(x1, y1 - y2, color='red')
plt.plot(x1, np.zeros(len(y1)), color='grey',linestyle='dashed')
plt.ylim(plt_ranged)
plt.ylabel('('+SCM_RT[var].units+')')
plt.xlabel('(hours)')
#
Expand Down

0 comments on commit e4ebc56

Please sign in to comment.