Redirecting in 300 seconds to ...

result page Your query is 2dntca_322017040a86573465f4446d50
cd .. ;export PATH=:/py3/bin; echo ; ls -ltr

Execution log:

>test /home/ubuntu/djangoEnv/bin/ipython 11/21/2018 01:07:47 PM INFO: Reading notebook bin/calc_temp.ipynb /home/ubuntu/djangoEnv/local/lib/python2.7/site-packages/IPython/paths.py:62: UserWarning: IPython dir '/var/www/.ipython' is not a writable location, using a temp directory. " using a temp directory.".format(ipdir)) /home/ubuntu/djangoEnv/local/lib/python2.7/site-packages/IPython/paths.py:62: UserWarning: IPython dir '/var/www/.ipython' is not a writable location, using a temp directory. " using a temp directory.".format(ipdir)) 11/21/2018 01:07:48 PM INFO: Running cell: from astropy.convolution import * import sys import os sys.path.append(os.path.abspath('..')) %matplotlib notebook # utils=os.path.abspath('..') from utils import * import time from KBs import * global log log = [] 11/21/2018 01:07:51 PM INFO: Cell returned 11/21/2018 01:07:51 PM INFO: Running cell: (HTML(tog)) 11/21/2018 01:07:51 PM INFO: Cell returned 11/21/2018 01:07:51 PM INFO: Running cell: # convolve_int=lambda a,fir,method:np.around(convolve(a,fir,method)).astype(np.int); def csv2dat(fname): import csv import numpy as np global log dat=[]; with open(fname, 'r') as csvfile: spamreader = csv.reader(csvfile, delimiter='\t') for row in (spamreader): dat+=[row]; log = log + ['Used \''+fname+'\' as input ']; return (np.array(dat)); # if not 'input_rulestr' in locals(): # input_rulestr='000000000060031c61c67f86a0'; # input_rulestr # CA_sys 11/21/2018 01:07:51 PM INFO: Cell returned 11/21/2018 01:07:51 PM INFO: Running cell: def profile(input_list, log = []): # global log output_data=[]; repeat=2; # input_list=[input_rulestr]; ipt_list=input_list*repeat; # for i in range(5): l_ipt=len(input_list) log += ['Log of the process:']; logs='Starting to profile {:d} rules at {:d} replicates,\n totaling {:d} instances'.format(l_ipt,repeat,l_ipt*repeat); log += [logs]; # print('Starting to profile {:d} rules at {:d} replicates,\n totaling {:d} instances'.format(l_ipt,repeat,l_ipt*repeat)) for num,rulestr in enumerate(ipt_list): ca1=CA_sys(familyname,rulestr,[400,100,400]); ca1.rulestr2alias(); s=measure_temperature(ca1,hdist); output_data+=[s]; # print('{:d} of {:d}'.format(num,len(ipt_list))) logs =('{:d} of {:d} '.format(num,len(ipt_list))); log += [logs]; temp_data=[]; # sample_data=[] for line in output_data: temp_data+=[line.rstrip('\n').split('\t')]; sample_data=np.array(temp_data) # print('data is succesfully generated at {:d} replicates'.format(repeat)) logs=('data is succesfully generated at {:d} replicates'.format(repeat)) log += [logs]; # print('\n Detail of the input:') logs='\n Detail of the input:'; log+=[logs]; for k,v in ca1.__dict__.items(): if not callable(v): # print(k+str(v).ljust(-10)) # print("{:5} {:<15} {:<10}".format('',k, str(v))) logs=("{:5} {:<15} {:<10}".format('',k, str(v))); log+=[logs]; return( [sample_data,log]); 11/21/2018 01:07:51 PM INFO: Cell returned 11/21/2018 01:07:51 PM INFO: Running cell: # #test # ca1=CA_sys('2dntca',input_rulestr,[600,100,400]); # ca1.rulestr2alias(); # s=measure_temperature(ca1,hdist); # output_data=[]; from os import environ # global log # log=[]; if 'query' not in locals(): query = environ.get('query',None); # print query if not query==None: query = environ['query']; if query[-4:]=='.csv': query_type = 'csv'; else: query_type = 'rulestr'; # familyname, input_rulestr = query.split('_'); else: # familynam query='2dntca_000000000060031c61c67f86a0'; query_type = 'rulestr' # familyname, input_rulestr = query.split('_'); log+=['fail to fetch query, using default rule, B3/S23 \n' + 'example query:'+query]; ## Using B3/S23 as example if query_type == 'csv': # sample_dat, log = sample_data=csv2dat('../calc_temp_data/'+query); print('data loaded') if query_type == 'rulestr': familyname, input_rulestr = query.split('_'); sample_data,log = profile([input_rulestr],log) log+=['data generated for '+query]; 11/21/2018 01:07:51 PM INFO: Cell raised uncaught exception:  MemoryErrorTraceback (most recent call last)  in ()  33 if query_type == 'rulestr':  34 familyname, input_rulestr = query.split('_'); ---> 35 sample_data,log = profile([input_rulestr],log)  36 log+=['data generated for '+query];  in profile(input_list, log)  15 ca1=CA_sys(familyname,rulestr,[400,100,400]);  16 ca1.rulestr2alias(); ---> 17 s=measure_temperature(ca1,hdist);  18 output_data+=[s];  19 # print('{:d} of {:d}'.format(num,len(ipt_list))) /var/www/newflaw.com/calc_temp/bin/KBs.pyc in measure_temperature(sys0, hdist, *args, **kwargs)  205 siz=avi.shape  206 siz=(sysX.hmax,)+siz; --> 207 tmp=np.zeros(siz)  208 smtmp=np.zeros(siz)  209  MemoryError: 11/21/2018 01:07:51 PM INFO: Saving to temp_2dntca_322017040a86573465f4446d50.ipynb 11/21/2018 01:07:51 PM INFO: Shutdown kernel 11/21/2018 01:07:52 PM WARNING: Exiting with nonzero exit status [NbConvertApp] Converting notebook temp_2dntca_322017040a86573465f4446d50.ipynb to html [NbConvertApp] Writing 517337 bytes to temp_2dntca_322017040a86573465f4446d50.html 1