Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt_file doesn't have attribute name #8

Open
kparasch opened this issue Mar 4, 2024 · 0 comments
Open

alt_file doesn't have attribute name #8

kparasch opened this issue Mar 4, 2024 · 0 comments

Comments

@kparasch
Copy link
Contributor

kparasch commented Mar 4, 2024

print(f"Saved calculation results in {alt_file.name}.")

Traceback (most recent call last):
  File "/srv/Template_LHCIT_ecloud_buildup/combine.py", line 77, in <module>
    with ProtectFile(triplet_path, 'r+b', backup=False, wait=1, eos_url=args.eos_url) as pf:
  File "/usr/local/xsuite/miniforge3/lib/python3.10/site-packages/xaux/protectfile.py", line 359, in __exit__
    self.mv_temp()
  File "/usr/local/xsuite/miniforge3/lib/python3.10/site-packages/xaux/protectfile.py", line 394, in mv_temp
    self.restore()
  File "/usr/local/xsuite/miniforge3/lib/python3.10/site-packages/xaux/protectfile.py", line 419, in restore
    print(f"Saved calculation results in {alt_file.name}.")
AttributeError: 'str' object has no attribute 'name'

alt_file doesn't have attribute name, at least when eos_url is provided, in which case it is a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant