We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90351f3 commit 83e37f2Copy full SHA for 83e37f2
1 file changed
perftest/vscript_read_large_file.py
@@ -0,0 +1,16 @@
1
+import vutils
2
+import datetime
3
+if __name__=='__main__':
4
+ print('Uses Vista which wraps lowlevel HEC DSSVue functions')
5
+ d=vutils.opendss('ITP_PP_out_ec.dss')
6
+ s=datetime.datetime.now()
7
+ npaths=len(d) # Used to load the catalog into memory
8
+ print('Catalog read in %s'%str(datetime.datetime.now()-s))
9
+ print('Reading data from %s pathnames'%str(npaths))
10
11
+ for ref in d:
12
+ s1=datetime.datetime.now()
13
+ data=ref.getData()
14
+ path=ref.getPathname()
15
+ print('Read %s in %s '%(str(path), str(datetime.datetime.now()-s1)))
16
+ print('Read %s in %s'%(npaths,str(datetime.datetime.now()-s)))
0 commit comments