← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3802: remove redundant "from yade import *" in example scripts, as it mess-up scopes

 

------------------------------------------------------------
revno: 3802
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
timestamp: Thu 2014-01-23 19:08:34 +0100
message:
  remove redundant "from yade import *" in example scripts, as it mess-up scopes
modified:
  examples/test/batch/sim.py
  examples/test/periodic-geom-compare.py
  examples/test/periodic-simple-shear.py
  examples/test/periodic-triax-settingHsize.py
  examples/test/periodic-triax.py
  examples/test/unv-read/unvRead.py
  examples/test/vtk-exporter/vtkExporter.py
  examples/timeStepperUsage.py
  py/tests/cohesive-chain.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 'examples/test/batch/sim.py'
--- examples/test/batch/sim.py	2013-03-28 11:15:45 +0000
+++ examples/test/batch/sim.py	2014-01-23 18:08:34 +0000
@@ -1,4 +1,4 @@
-from yade import *
+
 readParamsFromTable(unknownOk=True,
 	important=6,
 	unimportant='foo',

=== modified file 'examples/test/periodic-geom-compare.py'
--- examples/test/periodic-geom-compare.py	2013-03-28 11:13:12 +0000
+++ examples/test/periodic-geom-compare.py	2014-01-23 18:08:34 +0000
@@ -1,7 +1,6 @@
 # coding: utf-8
 # 2009 © Václav Šmilauer <eudoxos@xxxxxxxx>
 "Test and demonstrate use of PeriTriaxController."
-from yade import *
 from yade import pack
 O.periodic=True
 O.cell.setBox(.1,.1,.1)

=== modified file 'examples/test/periodic-simple-shear.py'
--- examples/test/periodic-simple-shear.py	2013-03-28 11:13:12 +0000
+++ examples/test/periodic-simple-shear.py	2014-01-23 18:08:34 +0000
@@ -2,7 +2,6 @@
 # 2009 © Václav Šmilauer <eudoxos@xxxxxxxx>
 # 2011 ©Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
 "Test and demonstrate use of PeriTriaxController."
-from yade import *
 from yade import pack,qt
 
 O.periodic=True

=== modified file 'examples/test/periodic-triax-settingHsize.py'
--- examples/test/periodic-triax-settingHsize.py	2013-03-28 11:13:12 +0000
+++ examples/test/periodic-triax-settingHsize.py	2014-01-23 18:08:34 +0000
@@ -1,8 +1,7 @@
 # coding: utf-8
 # 2011 ©Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
 "Demonstrate the compression of a periodic cell with non-trivial initial geometry."
-from yade import *
-from yade import pack,log,qt
+from yade import pack,qt
 O.periodic=True
 
 O.cell.hSize=Matrix3(1.0, -0.15, -0.10,

=== modified file 'examples/test/periodic-triax.py'
--- examples/test/periodic-triax.py	2013-03-28 11:13:12 +0000
+++ examples/test/periodic-triax.py	2014-01-23 18:08:34 +0000
@@ -1,7 +1,6 @@
 # coding: utf-8
 # 2009 © Václav Šmilauer <eudoxos@xxxxxxxx>
 "Test and demonstrate use of PeriTriaxController."
-from yade import *
 from yade import pack,qt
 O.periodic=True
 

=== modified file 'examples/test/unv-read/unvRead.py'
--- examples/test/unv-read/unvRead.py	2012-03-13 15:23:04 +0000
+++ examples/test/unv-read/unvRead.py	2014-01-23 18:08:34 +0000
@@ -1,4 +1,3 @@
-from yade import *
 from yade import ymport
 
 facets = ymport.unv('shell.unv',shift=(100,200,300),scale=1000)

=== modified file 'examples/test/vtk-exporter/vtkExporter.py'
--- examples/test/vtk-exporter/vtkExporter.py	2013-07-10 09:16:15 +0000
+++ examples/test/vtk-exporter/vtkExporter.py	2014-01-23 18:08:34 +0000
@@ -1,4 +1,3 @@
-from yade import *
 from yade import export
 
 O.bodies.append([

=== modified file 'examples/timeStepperUsage.py'
--- examples/timeStepperUsage.py	2013-05-14 21:24:11 +0000
+++ examples/timeStepperUsage.py	2014-01-23 18:08:34 +0000
@@ -1,7 +1,7 @@
 # coding: utf-8
 # 2012 © Bruno Chareyre <bruno.chareyre_A_hmg.inpg.fr>
 "Test and demonstrate the use of timestepper and density scaling."
-from yade import *
+
 from yade import pack,qt,timing
 O.periodic=True
 

=== modified file 'py/tests/cohesive-chain.py'
--- py/tests/cohesive-chain.py	2013-03-08 21:26:47 +0000
+++ py/tests/cohesive-chain.py	2014-01-23 18:08:34 +0000
@@ -10,7 +10,6 @@
 from yade.wrapper import *
 from yade._customConverters import *
 from yade import utils
-from yade import *
 from math import *
 
 try: