← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2420: 1. Fix export.textExt function according to http://www.mail-archive.com/yade-users@lists.launchpa...

 

------------------------------------------------------------
revno: 2420
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-08-30 10:01:26 +0200
message:
  1. Fix export.textExt function according to http://www.mail-archive.com/yade-users@xxxxxxxxxxxxxxxxxxx/msg02413.html
modified:
  py/export.py


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'py/export.py'
--- py/export.py	2010-05-19 12:58:29 +0000
+++ py/export.py	2010-08-30 08:01:26 +0000
@@ -153,7 +153,7 @@
 		out.write('# ' + comment + '\n')
 	for b in O.bodies:
 		try:
-			if ((b.shape.name=="Sphere") and consider(b.id)):
+			if (isinstance(b.shape,Sphere) and consider(b.id)):
 				if (format=='x_y_z_r'):
 					out.write('%g\t%g\t%g\t%g\n'%(b.state.pos[0],b.state.pos[1],b.state.pos[2],b.shape.radius))
 				elif (format=='x_y_z_r_matId'):