yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14515
Re: Fixing the examples
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Sun, 20 Jan 2019 22:45:39 +0100
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<CAAkvNuUD-cE-ri437t+AchtJu_RzYDrwFN7Ue3dgRhmuye324A@mail.gmail.com>
Sounds great!
You can see more info in file examples/list_of_examples.txt
would be great if mark in this file those that you have fixed.
it is already merged on gitlab :)
https://gitlab.com/yade-dev/trunk/merge_requests/27
best regards
Janek
Jan Stránský said: (by the date of Sun, 20 Jan 2019 21:44:29 +0100)
> Hi Janek,
>
> thanks for the detailed look :-)
>
> > If you have any hints on how to fix any of those examples, please tell!
>
> several mentioned not working script is from me. I think than correcting
> them and pushing to gitlab is better than telling :-)
>
> > Also I see that https://yade-dem.org/doc/tutorial-examples.html looks
> very strange - the youtube videos are not shown
>
> I don't remember the reason (have read it long time ago), but the youtube
> videos does work using http (not https) in the address
>
> cheers
> Jan
>
>
>
> ne 20. 1. 2019 v 20:27 odesílatel Janek Kozicki <janek_listy@xxxxx> napsal:
>
> > Hi,
> >
> > I did small or cosmetic fixes in 17 examples.
> > Currently 21% of examples (46 out of 215) are broken.
> >
> > I tried every example in a very quick manner. I checked if it has any
> > explanations inside the comments, then I tried to just run it.
> > It is possible that some of them failed only because they need a bit
> > fiddling before starting them. In that case we need to explain the
> > fiddling inside the file, in comments. And tell me what is the fiddling to
> > do!
> >
> > If you have any hints on how to fix any of those examples, please tell!
> >
> > ResetRandomPosition.py
> > : SIGSEGV/SIGABRT handler called;
> > : gdb [with T = IGeomFunctor; typename
> > boost::detail::sp_member_access<T>::type = IGeomFunctor*]: Assertion `px !=
> > 0' failed.
> >
> > DeformEngine/LOedometricDeform.py and OedometricDeform.py
> > : NameError: name 'DeformControl' is not defined
> >
> > FEMxDEM
> > : ImportError: No module named esys.escript
> > I am reading https://launchpad.net/escript-finley to fix this.
> >
> > HydroForceEngine/twoWayCoupling/postProcessing_sedim.py
> > : line:49 ValueError: operands could not be broadcast together with
> > shapes (900,) (901,) (900,)
> >
> > LudingPM/LudingPM_1.py and LudingPM_2.py
> > : NewtonIntegrator: NaN force acting on #0.
> >
> > PotentialBlocks/WedgeYADE.py and cubePBscaled.py
> > PotentialParticles/basic.py and cubePPscaled.py
> > : NameError: name 'PotentialBlock2AABB' is not defined
> > I will recompile with ENABLE_POTENTIAL_BLOCKS=ON and see if they work.
> >
> > agglomerate/simulation.py
> > : AttributeError: 'Body' object has no attribute 'agglomerate'
> >
> > capillary/liquidmigration/showcase.py
> > : NameError: name 'LiqControl' is not defined
> > I will recompile with LIQMIGRATION and see if it works.
> >
> > clumps/save-load-clumps.py
> > : SIGSEGV/SIGABRT handler called; gdb
> > : Assertion `member->isClumpMember()' failed.
> >
> > deformableelem/Minimal.py
> > : the graphs are empty
> >
> > deformableelem/main.py
> > : I suppose this file is here by mistake ?
> >
> > jointedCohesiveFrictionalPM/packInGtsSurface.py and all other files
> > : spams terminal with messages: UnbalancedForce=-nan, rel stress nan
> >
> > mortar/modelTests/failureEnvelope.py
> > : MortarMat.cpp:12 go: MortarMat not implemented for non-cohesive contacts
> >
> > oar/sim.py
> > : KeyError: 'Invalid key: description.'
> >
> > sph/dam_break.py and all other files there
> > : AttributeError: No such attribute: KernFunctionPressure.
> > I will recompile with SPH and see if they work.
> >
> > test/WireMatPM/net-2part-strain.py
> > : UniaxialStrainer::action(): Assertion `posIds.size()==posCoords.size()
> > && negIds.size()==negCoords.size() && originalLength>0 &&
> > crossSectionArea>0' failed.
> > : SIGSEGV/SIGABRT handler called; gdb
> >
> > test/batch/sim.py
> > : KeyError: 'Invalid key: description.'
> >
> > test/exact-rot-facet.py and exact-rot.py
> > : [with T = IGeomFunctor; typename
> > boost::detail::sp_member_access<T>::type = IGeomFunctor*]: Assertion `px !=
> > 0' failed.
> > : SIGSEGV/SIGABRT handler called; gdb
> >
> > test/genCylLSM.py
> > : InsertGenerator3D::seedParticles
> > : bbx: -15 -15 -15 - 15 15 215
> > : SIGSEGV/SIGABRT handler called; gdb batch file is
> >
> > test/helix.py
> > : script runs and is not crashing, but nothing happens
> >
> > test/pack-predicates.py
> > : nothing happens, scene is empty
> >
> > test/paraview-spheres-solid-section/
> > yade export_text.py
> > apt install paraview-python
> > python pv_section.py
> > : Traceback (most recent call last):
> > : File "pv_section.py", line 29, in <module>
> > : RenderView1.UseInteractiveRenderingForSceenshots = 0
> > : File "/usr/lib/python2.7/dist-packages/paraview/servermanager.py", line
> > 307, in __setattr__
> > : "to add this attribute.")
> > : AttributeError: Attribute UseInteractiveRenderingForSceenshots does not
> > exist. This class does not allow addition of new attributes to avoid
> > mistakes due to typos. Use add_attribute() if you really want to add this
> > attribute.
> >
> > test/psd.py
> > : the scene is empty, apparently makeCloud didn't do anything. Or I would
> > have to wait longer.
> >
> > test/qt4-attributes.py and qt4-pyqglviewer.py
> > : Error: already imported an Incompatible QT Binding: pyqt5
> > I will try to convert this to qt5
> >
> >
> > test/remove-body.py
> > : AttributeError: No such attribute: nBins
> >
> > test/shear.py
> > : sp_member_access<T>::type = IGeomFunctor*: Assertion `px != 0' failed
> > : SIGSEGV/SIGABRT handler called; gdb
> >
> > test/test_Ip2_FrictMat_CpmMat_FrictPhys.py
> > : After collision there is error: InteractionLoop::action(): Assertion
> > `!swap' failed.
> > : SIGSEGV/SIGABRT handler called; gdb
> >
> > test/unv-read/unvReadVTKExport.py
> > : TypeError: facet() got an unexpected keyword argument 'returnElementMap'
> >
> >
> > triax-tutorial/script-session2.py
> > : AttributeError: No such attribute: sigma1
> >
> >
> >
> > Also I see that https://yade-dem.org/doc/tutorial-examples.html looks
> > very strange - the youtube videos are not shown. There is no comments
> > or explanations. Even the extra wiki pages like those which I
> > stumbled upon:
> >
> > https://yade-dem.org/wiki/CapillaryTriaxialTest
> > https://yade-dem.org/wiki/ScriptParametricStudy
> >
> > are not mentioned at all.
> >
> > I am not sure how to fix the youtube links, but perhaps I will add
> > some more content to this page.
> >
> > What do you think about copying whose wiki pages into
> > yade-dem.org/doc/tutorial-examples.html ?
> >
> > --
> > Janek Kozicki
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev
> > Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev
> > More help : https://help.launchpad.net/ListHelp
> >
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References