Skip to Content.
Sympa Menu

opal - [Opal] Monitor output: Text file busy

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

[Opal] Monitor output: Text file busy


Chronological Thread 
  • From: "Dr. Simon Friederich" <s.friederich AT uni-mainz.de>
  • To: <opal AT lists.psi.ch>
  • Subject: [Opal] Monitor output: Text file busy
  • Date: Wed, 29 Apr 2020 13:20:33 +0200
  • Authentication-results: localhost; iprev=pass (ironport-2.zdv.net) smtp.remote-ip=134.93.178.242; spf=pass smtp.mailfrom=uni-mainz.de; dkim=pass header.d=uni-mainz.de header.s=20190702 header.a=rsa-sha256; dmarc=pass header.from=uni-mainz.de
  • Ironport-phdr: 9a23:1/F80RCqkXZLMsv1sEfrUyQJP3N1i/DPJgcQr6AfoPdwSPX7rsbcNUDSrc9gkEXOFd2Cra4d1qyI6Ou7CSQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagYb5+NhS7oAveusQYgoZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9RugqxbvRyhoB9xzYDab46aKPV+f7jQcskGSWdbRMtdSyJMD4G6YoASD+QBJ+FYr4zlqlcAoxW+HxOgD/7yxD9Jg3/22qs62PkhHwHc3QwvAc8Bv2rOrNX0KKgSUe65x7TPwDXYdf9W1y396InWfR88v/6MR7NwftbRyUQ0CgPFiFSQpZXgPzyP1+QNtWma4/B9Wu2xkmMqrRx6rDu3xso0hInGm40Yxk7B+Ch2zos5O9O1RUt4bNG4DZRfqiSXOopqTs4jRmxlvDw1xqEItJO+eCUF05onxxDaZvyJbYeE/AnsWeOKLjhkn31pZKqzihKy/ES6zuDwS9O43EhXoidEiNXBuHMA2hrO4cadUPR95F2u2TOX2gDW7eFLPF47mLLAK54k3r4wjp0TsVnfHiPumEX5kquWdkI89+e25OXrf6jqqoKBO4NtjwH+KbkimsOmDegmMwUCRWma9vmi1LH580L5RrRKguQxnKbDsZDaI8UaqrS3DQFayooj6hC/ACm60NkAk3kIMV1IdAyCgoXmNVzCPv71APK8jluwjThk2vXLM7z9DpjMK3XOlK3ucapz5kNZzAc81t5f55xRB7EPPv3/RFT+udnDARAlKAO43/7rCNBn2YMfXWKPDLWZMKTXsVKQ/eIvIueMZJUUuDnjNvcq+eXjjWI/mV8cZKWp2IEYaHG+HvVnOUmWfGTjjs8bEWgWpgo+UPDqiFqaXD5Uf3a9RaY86yo/CIKnFofDWputjKaZ3CegH51afHxJClDfWUvvItGDQ/4IQCaTOdN61CQfVP6qS9ly+wupsVqw56AhZtHV/yoe/bz51dV56vfSnhF4vWhvScqH0myBQnt1lWMgWjk3maV2oEpvjFuOh/sry8dEHMBesqsaGjwxMoTRmrR3
  • Ironport-sdr: l4q9bNglACgEwAPmTH/tI4PwpWf4xtE4hSAxuSmGDevcarS2fyvoe7MAz6zuZVwWcjyjjDzAtO XdgZuEi4b/Yhh79Z+gZXVUMI9xWKPNJvuCQRrnVbAj6T6a/IMg1SIYl7M9mimhlAxbGmH+dNvI 0A+aG2yKZ0LpNsaDq6G3MNmfFuUd2SVRPhEYN9A3Kv62NJ2ZK0CgPX25pmnZxZ/4gwWzZ+D0MI pjbd7ahPYOxgPZDucsjzFzQl2ctbKFBXIdIG9/XG1SsMOAFbYAcz0v7FbUCizvLBi3OE6lZ5Zf jgk=
  • Organization: Institut für Kernphysik Mainz

Dear OPAL-Team,

I use pyOPALTools in the following way (example.h5 = global .h5-file including all phase space information, mon1.h5 = monitor output):

    from opal.opal import load_dataset

    h5file = load_dataset(".", fname="example.h5")
    mon1 = load_dataset(".", fname="mon1.h5")

Which works perfectly well.

Problem:
While having these commands executed in an interactive python shell or application, the OPAL terminal prints:

Error>     boost::filesystem::remove: Text file busy: "mon1.h5"

if I want to rerun the simulation simultanously.

Of course I understand what the error wants to tell me, but what I don't understand is, why does the global h5-file not lead to the error (or vice versa: why does the monitor output; both are of the same filetype after being instanciated). And following up: Can you tell me how to circumvent the locking. The "with open()"-like aproach "with load_dataset(...) as f: tmp = f" which normaly is used in such cases does not work due to an AttributError arising.

Thank you very much.

Best regards,

Simon

-- 
-----------------------------------
Dr. Simon Friederich
Helmholtz-Institut Mainz
Kollaboration B/ACID
Johannes Gutenberg-Universität Mainz
Staudingerweg 18
55128 Mainz, Deutschland

Tel.: +49 (0)6131 39-23160
E-Mail: s.friederich AT uni-mainz.de
-----------------------------------



Archive powered by MHonArc 2.6.19.

Top of Page