AspenPlus interface with Python #2
Unanswered
BaileyLadd01
asked this question in
Q&A
Replies: 3 comments
-
Hey Vincent.
The only way I have found is using that node. This only deals with normal
simulation errors and not with program wide crashed.
Sometimes the whole Aspen just freezes. I used to detect this by taking
some stream, changing it's value, then reading the value you just changed.
If you get a value then the reading part works, if you get the value that
you wrote then you know that both reading and writing works.
Now if this takes more then X seconds I then know that neither of them are
working.
In this case I was unable to actually do anything. So I automatically
killed the Aspen program, os.kill (I think?) and restarted it from a safe
backup.
Op do 26 sep. 2024 14:02 schreef Vincent Bailey Ladd <
***@***.***>:
… @YouMayCallMeJesus <https://github.com/YouMayCallMeJesus> I was wondering
if your code had any nice ways to detect if Aspen throws up an error. So
far I have been using an error detection node from the aspen tree, but it
doesn't seem to work as intended. I would appreciate any help with figuring
out how to set up an effective error detection system for my project.
—
Reply to this email directly, view it on GitHub
<#2>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUUV43MF35ZDUSCH37LEAOTZYPZTRAVCNFSM6AAAAABO43IR4CVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGIZTSMJRGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Unfortunately for my case I wouldn't be able to try and access a stream to detect an error. Typically my errors are infinite convergence errors. What made you choose to use os.kill() instead of aspen.Close() which uses the COM object? In my experience of closing aspen down using the task manager (which I think is similar to os.kill() ) the aspen file typically opens as a .bkp after instead of a .apw file as intended. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey Vincent,
To be honest I didn't try the Aspen.Close since I was unable to close the
application without using the task manager when using it manually.
But you are right it might work.
I found the same thing with the bkp file being the only thing available
(unless you regularly save it) but that was not a big deal in my
application.
I was just scrapping data to train some RL. If it crashed then I just
wanted it to detect it and then restart. If I lost a bit of progress that
didn't matter too much.
Hmm. Isn't there a convergence node? I am not sure but I though there was
something like that.
Good luck with your work
Richard
Op vr 27 sep. 2024 10:13 schreef
… Hi @YouMayCallMeJesus <https://github.com/YouMayCallMeJesus>
Unfortunately for my case I wouldn't be able to try and access a stream to
detect an error. Typically my errors are infinite convergence errors. What
made you choose to use os.kill() instead of aspen.Close() which uses the
COM object?
In my experience of closing aspen down using the task manager (which I
think is similar to os.kill() ) the aspen file typically opens as a .bkp
after instead of a .apw file as intended.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUUV43IPPGLTFJEOA6WSNCLZYUHSDAVCNFSM6AAAAABO43IR4CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZXGIZTSNY>
.
You are receiving this because you were mentioned.Message ID:
<YouMayCallMeJesus/AspenPlus-Python-Interface/repo-discussions/2/comments/10772397
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@YouMayCallMeJesus I was wondering if your code had any nice ways to detect if Aspen throws up an error. So far I have been using an error detection node from the aspen tree, but it doesn't seem to work as intended. I would appreciate any help with figuring out how to set up an effective error detection system for my project.
Beta Was this translation helpful? Give feedback.
All reactions