mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Fix the back_end value if TREXIO_AUTO is used
This commit is contained in:
parent
8ac21bc11d
commit
114cbf3081
@ -742,7 +742,7 @@ struct trexio_s {
|
|||||||
|
|
||||||
#+begin_src python :tangle basic_python.py
|
#+begin_src python :tangle basic_python.py
|
||||||
class File:
|
class File:
|
||||||
"""TREXIO File object.
|
"""trexio.File class.
|
||||||
|
|
||||||
General information about the TREXIO file.
|
General information about the TREXIO file.
|
||||||
|
|
||||||
@ -775,7 +775,6 @@ class File:
|
|||||||
"""TREXIO File class constructor."""
|
"""TREXIO File class constructor."""
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
self.back_end = back_end
|
|
||||||
self.state = 0
|
self.state = 0
|
||||||
|
|
||||||
self.isOpen = False
|
self.isOpen = False
|
||||||
@ -789,6 +788,7 @@ class File:
|
|||||||
self.isOpen = None
|
self.isOpen = None
|
||||||
self.exists = None
|
self.exists = None
|
||||||
|
|
||||||
|
self.back_end = self.pytrexio_s.back_end
|
||||||
self.info = info
|
self.info = info
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user