X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=pymeshio%2Fmqo%2Freader.py;h=47cb578272da0225afbbad9ec73226c2bd10eb7d;hb=2efddafef674ff17c8562ac6d9a84a52bbf7c355;hp=a5ada0bec85d8f5bf6165ce418d791593ba55a95;hpb=1a59747c66623ef3b6b66412d25ffc4e613cd893;p=meshio%2Fpymeshio.git diff --git a/pymeshio/mqo/reader.py b/pymeshio/mqo/reader.py index a5ada0b..47cb578 100644 --- a/pymeshio/mqo/reader.py +++ b/pymeshio/mqo/reader.py @@ -159,12 +159,25 @@ class Reader(object): def read_from_file(path): + """ + read from file path, then return the pymeshio.mqo.Model. + + :Parameters: + path + file path + """ with io.open(path, 'rb') as ios: return read(ios) def read(ios): - print(type(ios), ios) + """ + read from ios, then return the pymeshio.mqo.Model. + + :Parameters: + ios + input stream (in io.IOBase) + """ assert(isinstance(ios, io.IOBase)) reader=Reader(ios) model=mqo.Model()