Skip to content

example plantarch_collision_sample crashes #5

@ArnaudBvr

Description

@ArnaudBvr

Hi,

The script plantarch_collision_sample.py mostly runs fine, until the 5th example which raises the following error :

Plant 0 has 215 collision-relevant objects
Traceback (most recent call last):
  File "/home/gxbouvry/Documents/temporaire/pyhelios/plantarch_collision_sample.py", line 397, in <module>
    example_organ_filtering()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/gxbouvry/Documents/temporaire/pyhelios/plantarch_collision_sample.py", line 283, in example_organ_filtering
    context.setObjectColor(obj_id, RGBcolor(1, 0, 0))  # Red highlight
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Context' object has no attribute 'setObjectColor'. Did you mean: 'getObjectCount'?

I just installed pyhelios v0.1.17 using pip and copy/pasted the example from docs/examples/plantarch_collision_sample.py to test my installation.

Is this an issue on my side ?

Best regards,
Arnaud Bouvry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions