← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3876: Remove some machine-specific items in documentation.

 

------------------------------------------------------------
revno: 3876
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2016-05-30 21:23:35 +0200
message:
  Remove some machine-specific items in documentation.
  
  This is the first step to remove some machine-specific
  items in generated documentation to get a reproducible
  builds [1].
  
  [1] https://wiki.debian.org/ReproducibleBuilds/About
modified:
  doc/sphinx/introduction.rst
  doc/sphinx/tutorial-hands-on.rst


--
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 'doc/sphinx/introduction.rst'
--- doc/sphinx/introduction.rst	2015-04-15 20:33:49 +0000
+++ doc/sphinx/introduction.rst	2016-05-30 19:23:35 +0000
@@ -157,14 +157,8 @@
 
 	In [1]: O.pause()
 
-	In [1]: O.iter
-	104587
-
 	In [1]: O.run(100000,True)
 
-	In [1]: O.iter
-	204587
-
 	In [1]: O.stopAtIter=500000
 
 	In [1]: O.wait()
@@ -253,11 +247,9 @@
 
 .. ipython::
 
-	Yade [1]: O.bodies       # some data components
-
-	Yade [2]: len(O.bodies)  # there are no bodies as of yet
-
-	Yade [3]: O.engines      # functional components, empty at the moment
+	Yade [1]: len(O.bodies)  # there are no bodies as of yet
+
+	Yade [2]: O.engines      # functional components, empty at the moment
 
 Data components
 ^^^^^^^^^^^^^^^
@@ -288,13 +280,11 @@
 
 .. ipython::
 	
-   In [3]: s=utils.sphere(center=[0,0,0],radius=1)
-
-   In [5]: s.shape, s.state, s.mat, s.bound
-
-   In [6]: s.state.pos
-
-   In [7]: s.shape.radius
+   In [2]: s=utils.sphere(center=[0,0,0],radius=1)
+
+   In [3]: s.state.pos
+
+   In [4]: s.shape.radius
 
 
 We see that a sphere with material of type :yref:`FrictMat` (default, unless you provide another :yref:`Material`) and bounding volume of type :yref:`Aabb` (axis-aligned bounding box) was created. Its position is at origin and its radius is 1.0. Finally, this object can be inserted into the simulation; and we can insert yet one sphere as well.
@@ -360,21 +350,21 @@
 
 .. ipython::
 
-	In [1]: O.interactions[0,1]
-	<Interaction instance at 0x93f9528>
+	In [1]: if (O.interactions[0,1]): print ("Interaction exists!")
+	Interaction exists!
 
-	In [2]: O.interactions[1,0]     # order of ids is not important
+	In [2]: if (O.interactions[1,0]): print ("Interaction exists!")     # order of ids is not important
 
 	In [2]: i=O.interactions[0,1]
 	
 	In [3]: i.id1,i.id2
 	(0, 1)
 
-	In [4]: i.geom
-	<ScGeom instance at 0x9403838>
+	In [4]: if (i.geom): print ("Geom instance exists!")
+	Geom instance exists!
 
-	In [5]: i.phys
-	<ElasticContactInteraction instance at 0x94038d0>
+	In [5]: if (i.phys): print ("Phys instance exists!")
+	Phys instance exists!
 
 	In [6]: O.interactions[100,10111]
 	ValueError: No such interaction

=== modified file 'doc/sphinx/tutorial-hands-on.rst'
--- doc/sphinx/tutorial-hands-on.rst	2013-03-21 19:28:57 +0000
+++ doc/sphinx/tutorial-hands-on.rst	2016-05-30 19:23:35 +0000
@@ -320,8 +320,6 @@
 	
 	Yade [1]: s=utils.sphere((0,0,0),radius=1)    # create sphere particle centered at (0,0,0) with radius=1
 
-	Yade [1]: s.shape                       # s.shape describes the geometry of the particle
-
 	Yade [1]: s.shape.radius                # we already know the Sphere class
 
 	Yade [1]: s.state.mass, s.state.inertia # inertia is computed from density and geometry