Error for scale=... using yade.ymport.stl()

Asked by Marius HUBER

Hello everyone,

I get following error when using the yade.ymport module, more precisely the yade.ymport.stl() function:

O.bodies.append(ymport.stl(DFNmesh,color=(0.9,0.9,0.9),wire=False,material=DFNMat,scale=scaleFactor)) # DOES NOT IMPORT ANYTHING? #TypeError: stl() got an unexpected keyword argument 'scale'
TypeError: stl() got an unexpected keyword argument 'scale'

I tried several times. It's not me typing badly.

The keyword argument scale seems not to work for my yade version (2020.01a-6build2) using Ubuntu 20.04.2 LTS!

Do I need to simply update to the newest versions of Ubuntu and/or Yade in order to get it running or ...

is there maybe a bug in yade?

I am happy for any help that can resolve this problem.

Best regards,

Marius

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Marius HUBER (slopemarius) said :
#1
Revision history for this message
Best Jan Stránský (honzik) said :
#2

Hello,
scale parameter was added on 3th December 2020 [1], so version 2020.01 does not have it.
It does work for yadedaily [2].
Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/commit/b1faaf9d8216fce3b072b122253e4ece154b935b
[2] https://yade-dem.org/doc/installation.html#packages

Revision history for this message
Marius HUBER (slopemarius) said :
#3

Thanks a lot !

Revision history for this message
Marius HUBER (slopemarius) said :
#4

Thanks Jan Stránský, that solved my question.

Revision history for this message
Jan Stránský (honzik) said :
#5

https://yade-dem.org/doc is always w.r.t the most recent Yade version.