← Back to team overview

yade-dev team mailing list archive

Re: Fixing the examples

 

> Chia Weng Boon wants to delete it, but you have written it.

no, maybe I have just made some changes..
Jan


út 22. 1. 2019 v 22:03 odesílatel Janek Kozicki <janek_listy@xxxxx> napsal:

> Hi Jan,
>
> could you also have a look at examples/PotentialParticles/basic.py ?
> Chia Weng Boon wants to delete it, but you have written it. Maybe
> there is a chance to recover it?
>
> 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/  |
>
> _______________________________________________
> 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
>

Follow ups

References