/ . / GraspSurface / GRASP_Surface_Geometry
Methods
|
|
|
parse_records
|
parse_records (
self,
file,
swap,
)
Exceptions
|
|
SyntaxError, 'First record must be "format=1" or "format=2", got "%s"' % fmt
|
|
|
skip_record
|
skip_record (
self,
file,
swap,
)
|
|
parse_line_4
|
parse_line_4 ( self, line4 )
Line 4 is sometimes fortan-column-formatted (3i6, f12.6) and sometimes
white space separated.
|
|
need_to_swap_bytes
|
need_to_swap_bytes ( self, path )
|
|
read_record
|
read_record (
self,
file,
swap,
)
Exceptions
|
|
SyntaxError, 'Negative record size %d' % size
SyntaxError, ( 'Record size at end of record %d' % esize + ' != size at head of record %d' % size )
SyntaxError, ('Record size %d > file size %d' %( size, self.file_size ) )
|
|
|
__init__
|
__init__ ( self, path )
|
|
|