|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#12
|
||||
|
||||
|
Re: loading a COO file into Python
This only took 3.4 seconds to run on my Win 8.1 system.
Code:
import os
import time
time_start = time.time( )
data = [ ]
for line in open( r'D:\temp\Aijv.dat', 'r' ):
data.append( [ int( x ) for x in line.rstrip( ).split( ' ' ) ] )
print( '{0:.2f} secs'.format( time.time( ) - time_start ) )
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|