mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
264 stars 93 forks source link

Error using custom_step duplicate function #213

Open liudger opened 1 year ago

liudger commented 1 year ago

It looks liker there is an issue with self.dup() in custom_step. It expect attribute 'setup_root' but is has not this attribute. You can create this off course, but it should give a better warning that it needs this attribute to be created before you can use this dup function. How should this be fixed @miquelcampos ? Should a setup_root be created in the mgear_run? Or it could if not found use self.mgear_run.setupWS?

  File "/Users/liudger/Documents/projects/benjamin bat/scenes/bejamin/custom_steps/scripts/post/wing_proximity.py", line 48, in proximity_wrap
    self.wing_prox_geo = self.dup(self.custom_step("rig_base").wing_base_geo, name="wing_proximity_geo")
  File "/Users/liudger/Git/mgear4/release/scripts/mgear/shifter/custom_step.py", line 89, in dup
    pm.parent(dup, self.setup_root)
AttributeError: 'CustomShifterStep' object has no attribute 'setup_root'
miquelcampos commented 1 year ago

@liudger I will check also this ASAP. Thanks!