def save_results(self):
    print(('Saving results at t=%s...' % h.t))
    if (self.sim_end < 0):
        self.sim_end = time.time()
    py_v_time = [(t / 1000) for t in h.v_time.to_python()]
    f_time_f2 = open('time.dat', 'w')
    num_points = len(py_v_time)
    for i in range(num_points):
        f_time_f2.write(('%f' % py_v_time[i]))
    f_time_f2.close()
    print('Saved data to: time.dat')
    save_end = time.time()
    save_time = (save_end - self.sim_end)
    print(('Finished saving results in %f seconds' % save_time))
    print('Done')
    quit()
def save_results(self):
    print(('Saving results at t=%s...' % h.t))
    if (self.sim_end < 0):
        self.sim_end = time.time()
    py_v_time = [(t / 1000) for t in h.v_time.to_python()]
    f_time_f2 = open('time.dat', 'w')
    num_points = len(py_v_time)
    for i in range(num_points):
        f_time_f2.write(('%f' % py_v_time[i]))
    f_time_f2.close()
    print('Saved data to: time.dat')
    save_end = time.time()
    save_time = (save_end - self.sim_end)
    print(('Finished saving results in %f seconds' % save_time))
    print('Done')
    quit()