You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrapping over adios.File might not be a designed usage but would be convenient for user-specific data.
Currently, upon file closing errors are occasionally thrown:
# '1.13.1'print(adios.__version__)
# occasionally throwsclassadiosFileWrapper(adios.File):
pass# occasionally throws# class adiosFileWrapper1(adios.File):# def __init__(self, name, **kwargs):# super(adiosFileWrapper_noDel, self).__init__(name, **kwargs)# pass# occasionally throws# class adiosFileWrapper2(adios.File):# def __init__(self, name, **kwargs):# super(adiosFileWrapper_hasDel, self).__init__(name, **kwargs)# pass## def __del__(self):# super(adiosFileWrapper_hasDel, self).__del__()# does not seem to throw, but perhaps insecure (raw file handler might be dangling)# class adiosFileWrapper3(adios.File):# def __init__(self, name, **kwargs):# super(adiosFileWrapper_hasDel, self).__init__(name, **kwargs)# pass# # def __del__(self):# passfilename='test.bp'# occasionally throwsfile=adiosFileWrapper(filename)
file.close()
# finefile=adios.File(filename)
file.close()
Errors emitted from adiosFileWrapper:
Exception ignored in: <built-in method __del__ of adiosFileWrapper object at 0x7f86a21bead0>
Traceback (most recent call last):
File "adios.pyx", line 1066, in adios.file.__del__
File "adios.pyx", line 1078, in adios.file.close
AssertionError: Not an open file
adios.File
might not be a designed usage but would be convenient for user-specific data.Errors emitted from
adiosFileWrapper
:Possibly relevant code:
adios.File
?The text was updated successfully, but these errors were encountered: