Skip to content

Can't run openmc example #3

@RemDelaporteMathurin

Description

@RemDelaporteMathurin

I created a clean env today and tried to run the openmc example and got:

Traceback (most recent call last):
  File "/home/remidm/FESTIM-v2-review/coupling/coupling_neutronics/openmc_example.py", line 155, in <module>
    festim_model(use_openmc_mesh=False)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/remidm/FESTIM-v2-review/coupling/coupling_neutronics/openmc_example.py", line 89, in festim_model
    reader.create_dolfinx_mesh()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/remidm/anaconda3/envs/festim-v2-review-env/lib/python3.13/site-packages/openmc2dolfinx/core.py", line 44, in create_dolfinx_mesh
    self.data = self.read()
    ^^^^^^^^^
  File "/home/remidm/anaconda3/envs/festim-v2-review-env/lib/python3.13/site-packages/pyvista/core/utilities/misc.py", line 329, in __setattr__
    raise PyVistaAttributeError(msg)
pyvista.core.errors.PyVistaAttributeError: Attribute 'data' does not exist and cannot be added to class 'StructuredGridReader'
Use `pv.set_new_attribute` to set new attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions