If a terminal of a 'screen' session is dead for some reason, the session is not detached. In order to resume the session, have to use the following trick:
screen -d -r
The trick is from:
http://stackoverflow.com/questions/20807696/how-do-i-force-detach-screen-from-another-ssh-session
Data Analysis
Tuesday, 5 July 2016
Wednesday, 25 May 2016
Read data from a CSV file
import csv
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import numpy as np
def ReadCSVData( csvfname, d=' '):
with open( csvfname ) as csvfile:
reader = csv.reader( csvfile, delimiter=d)
rows = []
columns = []
for row in reader:
columns = []
for i in range(0, len(row)):
#print row[i]
columns.append( float(row[i]) )
rows.append( columns )
return rows,len(rows),len(columns)
Subscribe to:
Comments (Atom)