yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10392
[Branch ~yade-pkg/yade/git-trunk] Rev 3790: Change in the doc of ymport.text/textExt to better reflect the behaviour
------------------------------------------------------------
revno: 3790
committer: Jerome Duriez <jerome.duriez@xxxxxxxxxxxxxxx>
timestamp: Thu 2014-01-16 10:59:51 +0100
message:
Change in the doc of ymport.text/textExt to better reflect the behaviour
modified:
py/ymport.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/ymport.py'
--- py/ymport.py 2013-12-09 12:32:37 +0000
+++ py/ymport.py 2014-01-16 09:59:51 +0000
@@ -11,7 +11,7 @@
from miniEigen import *
def textExt(fileName,format='x_y_z_r',shift=Vector3.Zero,scale=1.0,**kw):
- """Load sphere coordinates from file in specific format, create spheres, insert them to the simulation.
+ """Load sphere coordinates from file in specific format, returns a list of corresponding bodies; that may be inserted to the simulation with O.bodies.append().
:param str filename: file name
:param str format: the name of output format. Supported `x_y_z_r`(default), `x_y_z_r_matId`
@@ -89,7 +89,7 @@
return ret
def text(fileName,shift=Vector3.Zero,scale=1.0,**kw):
- """Load sphere coordinates from file, create spheres, insert them to the simulation.
+ """Load sphere coordinates from file, returns a list of corresponding bodies; that may be inserted to the simulation with O.bodies.append().
:param string filename: file which has 4 colums [x, y, z, radius].
:param [float,float,float] shift: [X,Y,Z] parameter moves the specimen.