Closed goodluckandsendhelp closed 4 years ago
Hi,
you can change the output path using dir_save
kwarg in https://github.com/portugueslab/stytra/blob/a7ec8ed649d69ae4fc2bd7a07465ca45d618c51e/stytra/experiments/__init__.py#L95
Example:
st = Stytra(protocol=Protocol(), dir_save='D:\\')`
Without setting dir_save
it will generate an OS dependent temporary directory. You can see the path used in the Stytra UI on upper right corner.
Thanks @goraj! just to add: you can change the path also by clicking the button with the file location in the GUI.
@goodluckandsendhelp does this answer you question?
Dear Vilim,
Thank you so much for your help. Your answer was very helpful. However, I do have another question regarding Stytra if you don't mind, please. I found that when running a protocol, Stytra always crashes if we stop the protocol before it's fully run in "Protocol running" on GUI. Is there anything I can do to stop Stytra from crashing when doing so, please?
I look forward to your reply. Thank you so much for your time
Kind regards, Boyi
From: Vilim Štih notifications@github.com Sent: 12 July 2019 09:59 To: portugueslab/stytra stytra@noreply.github.com Cc: Boyi Shen bs92@st-andrews.ac.uk; Mention mention@noreply.github.com Subject: {Disarmed} Re: [portugueslab/stytra] Data and metadata saving (#14)
@goodluckandsendhelphttps://github.com/goodluckandsendhelp does this answer you question?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/portugueslab/stytra/issues/14?email_source=notifications&email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMRB7Y3CHVNB2W5XPO4TAADP7BBXRANCNFSM4H6KEAWA.
[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/portugueslab/stytra/issues/14?email_source=notifications\u0026email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039", "url": "https://github.com/portugueslab/stytra/issues/14?email_source=notifications\u0026email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Glad to help, you’re welcome!
Sorry to hear that, it should not crash. Please paste here the error message that appears in the terminal prompt after the crash. Also, it would be helpful to have the outputs of the conda list
and conda info
commands that you can run in the anaconda prompt. I would suggest you to open a new issue for this.
On 29. Jul 2019, at 09:44, goodluckandsendhelp notifications@github.com wrote:
Dear Vilim,
Thank you so much for your help. Your answer was very helpful. However, I do have another question regarding Stytra if you don't mind, please. I found that when running a protocol, Stytra always crashes if we stop the protocol before it's fully run in "Protocol running" on GUI. Is there anything I can do to stop Stytra from crashing when doing so, please?
I look forward to your reply. Thank you so much for your time
Kind regards, Boyi
From: Vilim Štih notifications@github.com Sent: 12 July 2019 09:59 To: portugueslab/stytra stytra@noreply.github.com Cc: Boyi Shen bs92@st-andrews.ac.uk; Mention mention@noreply.github.com Subject: {Disarmed} Re: [portugueslab/stytra] Data and metadata saving (#14)
@goodluckandsendhelphttps://github.com/goodluckandsendhelp does this answer you question?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/portugueslab/stytra/issues/14?email_source=notifications&email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMRB7Y3CHVNB2W5XPO4TAADP7BBXRANCNFSM4H6KEAWA.
[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/portugueslab/stytra/issues/14?email_source=notifications\u0026email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039", "url": "https://github.com/portugueslab/stytra/issues/14?email_source=notifications\u0026email_token=AMRB7Y6F47B27IUKNQATMULP7BBXRA5CNFSM4H6KEAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZFPNY#issuecomment-510810039", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ] — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Dear Vilim,
Thank you so much for your email.
There are two issues when we run Stytra this week:
The Camera section on GUI doesn't display camera feed.
Stytra crashes (the GUI shows error messages "not responding" when pause the running protocol via "protocol running" section
Stytra was functioning wonderfully before these issues raised yesterday. Here are what appeared in the Anaconda prompt as we initiate Stytra:
(base) C:\WINDOWS\system32>python -m stytra.experiments.bs_testrun0 Second screen not available
I find it difficult to pinpoint the source of the problems, all the terminal messages you pasted (please use the code formatting syntax ``` next time, it makes them much easier to read) are warnings and the appearance of any of them does not crash Stytra. For camera related issues, restarting the computer and ensuring no other processes (such as the Ximea tools) are accessing the camera usually solves the issues.
Also, I would not not recommend writing your code inside the Stytra package itself (unless it is something of general interest), just install it with pip and it will be accessible for your scripts.
Finally, you seem to be running python from an administrative prompt, which should not be necessary and is certainly not recommended. I would suggest uninstalling and freshly installing anaconda localy (for a single user), this often sorts out many issues.
Closing this issue due to inactivity
Hello, I'm looking at the files included in the package but I can't seem to find where the data and metadata are saved. I assume that it would be a csv file in the folder where camera captures are saved, but somehow I can't seem to find any csv files saved during test runs at all. I appreciate your help.