GithubHelp home page GithubHelp logo

Comments (6)

akaszynski avatar akaszynski commented on July 17, 2024

Quite likely. Can you upload the file here or if you're not comfortable with that, to my business email at [email protected]

from pymapdl-reader.

akaszynski avatar akaszynski commented on July 17, 2024

I'm unable to reproduce the error using the latest ansys-mapdl-reader on either Linux or Windows Python 3.8 with:

from ansys.mapdl import reader

rst = reader.read_binary('file.rst')

rst_ = reader.rst.Result('file.rst', read_mesh=True)

Could you please verify this error occurs on the file you sent to my work email?

from pymapdl-reader.

NDfp avatar NDfp commented on July 17, 2024

Thank you for checking!
I have found out that the cause of the error is that the file is read-only (Windows). When removing the read-only flag, the import works correctly.
I checked in common.py and the file is opened as read ('rb'). Do you know what could cause the error?

from pymapdl-reader.

akaszynski avatar akaszynski commented on July 17, 2024

I checked in common.py and the file is opened as read ('rb')

'rb' is just read binary, so that shouldn't be an issue, but there's another spot in the file where I open it as a fstream, which is read/write.

There was a feature request a while ago to overwrite results in the result file that resulted in a significant refactor of the code base. I could allow an option to open in read/read write, but that's a non-trivial PR.

Is it possible just to disable the read-only flag?

from pymapdl-reader.

jgd10 avatar jgd10 commented on July 17, 2024

@NDfp @akaszynski This issue seems to have stalled. Do we need to implement a new issue to cover the non-trivial work that akaszynski suggests or is disabling the read-only flag sufficient to close this issue?

from pymapdl-reader.

jgd10 avatar jgd10 commented on July 17, 2024

It's been long enough since the last comment that I think it is safe to close this issue for now, unless anything else comes up and we can reopen it.

from pymapdl-reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.