Skip to content
Snippets Groups Projects
Commit c97c8ce2 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 0ac41066
No related branches found
No related tags found
No related merge requests found
...@@ -52,17 +52,16 @@ for i in range(2): ...@@ -52,17 +52,16 @@ for i in range(2):
cld_mask_cmap = ListedColormap(cld_mask_list, 'CldMask') cld_mask_cmap = ListedColormap(cld_mask_list, 'CldMask')
# Read colors from CSV file # # Read colors from CSV file
colors_file = homedir + 'ICE.ct' # colors_file = homedir + 'ICE.ct'
colors = [] # colors = []
with open(colors_file, 'r') as csvfile: # with open(colors_file, 'r') as csvfile:
csv_reader = csv.DictReader(csvfile) # csv_reader = csv.DictReader(csvfile)
for row in csv_reader: # for row in csv_reader:
colors.append((float(row['R']) / 255, float(row['G']) / 255, float(row['B']) / 255)) # colors.append((float(row['R']) / 255, float(row['G']) / 255, float(row['B']) / 255))
# # Define a custom colormap
# Define a custom colormap # cmap_name = 'icing_colormap'
cmap_name = 'icing_colormap' # icing_cmap = LinearSegmentedColormap.from_list(cmap_name, colors, N=256)
icing_cmap = LinearSegmentedColormap.from_list(cmap_name, colors, N=256)
def plot_train_curve(rundir=None, title=None): def plot_train_curve(rundir=None, title=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment