Comments (6)
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.
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.
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.
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.
@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.
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)
- Bug located in PyMAPDL plotting HOT 7
- Bug located in nodal_solution reading HOT 10
- Bug located in Plotting. Mapdl.aplot HOT 3
- Segfault in fix_missing_midside
- Plot Nodal stress Error HOT 1
- Result animations don't work with the new pyvista default backend (trame) HOT 6
- Multiversion docs are missing HOT 3
- Support for ETBLOCK HOT 3
- PyMAPDL_Reader Attribute Error: FullReader() HOT 3
- plot is not the same between APDL and Pymapdl_reader HOT 7
- Reading 2023R1 CDB files fails
- The stresses are shown as NaN in ParaView HOT 1
- Bug with the full module HOT 1
- Bug with the rst module HOT 1
- how to read all elements information from .dat file by PyMapdl_reader HOT 13
- Read the .rst file generated from modal analysis in ANSYS 2022 R1 HOT 1
- Unknown error while reading the rst file via "pymapdl_reader.read_binary"
- Bug located in ...pymapdl_reader HOT 4
- Cyclic Result Analysis Plotting
- An error occurred in reading the cdb file of the model with cracks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymapdl-reader.