Skip to content

Eclipse reader plugin fails in both ParaView 4.2.4 and 5.1 (the latest) versions #2

@mlelous

Description

@mlelous

Hi Jan,

I'm interested in solving the same issue faced by @AsoAgile on 26 Jul 2016 related to the numpy version. Unfortunately, I do not understand how this issue was solved. Thank you.

Previous message from @AsoAgile

_"Dear Jan,

I am trying to use your Eclipse-reader plug in for ParaView to visualize Eclipse output data (*.egrid and *.unrst), but it fails with the following error, after I press apply button (I followed your readme.MT file). I tried my own files and even your test.egrid and test.unrst files but both fail as follow and I cannot visualize the data. I appreciate if you could have a look at the issue.

Regards,
AsoAgile"_

== Eclipse Reader Exception ==
Exception: <type 'exceptions.TypeError'> only length-1 arrays can be converted to Python scalars
File "", line 992, in RequestData
File "", line 500, in read_egrid
File "", line 463, in read_dict
File "", line 450, in make_dict
Traceback (most recent call last):
File "", line 19, in
File "", line 10, in RequestData
File "", line 1128, in RequestData
AttributeError: EclipseIO instance has no attribute 'output'

It was to do with my numpy version. I added 'new_value.astype(array_type)' to vector types (i.e. when 'not vector_size is None') 'make_dict' function and solved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions