mods for running w/out cache

This commit is contained in:
phowell 2023-03-23 12:05:27 -07:00
parent 25028b6df2
commit 6a18cb6866
3 changed files with 90 additions and 86 deletions

View File

@ -1014,6 +1014,8 @@ rez = [[m[j][i] for j in range(len(m))] for i in range(len(m[0]))]
# 'num_online': lambda x: 5 } ) # 'num_online': lambda x: 5 } )
#print gg #print gg
""" """
def has_online(series): def has_online(series):
# if any items of the series have the string 'online', return 1 # if any items of the series have the string 'online', return 1
for i in series: for i in series:

View File

@ -20,10 +20,13 @@ sqlite_file = local_data_folder + 'data.db' #'data_su20_4hr_blocks.db'
mylog = codecs.open(local_data_folder + 'canvas_data_log.txt','w') mylog = codecs.open(local_data_folder + 'canvas_data_log.txt','w')
thefiles_dat = {} thefiles_dat = {}
try:
for L in open('cache/canvas_data_index.txt','r').readlines(): for L in open('cache/canvas_data_index.txt','r').readlines():
L = L.strip() L = L.strip()
(fname,start,finish) = L.split(',') (fname,start,finish) = L.split(',')
thefiles_dat[fname] = start thefiles_dat[fname] = start
except Exception as e:
print("cache/canvas_data_index.txt was not found")
thefiles = open('cache/canvas_data_index_temp.txt','a') # rename me if nothing crashes :) thefiles = open('cache/canvas_data_index_temp.txt','a') # rename me if nothing crashes :)

View File

@ -1,4 +1,3 @@
alabaster==0.7.10
anaconda-client==1.6.5 anaconda-client==1.6.5
anaconda-navigator==1.6.9 anaconda-navigator==1.6.9
anaconda-project==0.8.0 anaconda-project==0.8.0