FileName conversions from input to output file #2644
Unanswered
davisreinaguerra
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Do not branch the input to properties: https://bonsai-rx.org/docs/articles/workflow-guidelines.html#property-initialization The update is no longer synchronous, and by the time that it fires, the file is already open. The solution is to use a BehaviorSubject to store the value of FileName and subscribe to it each time you need it. Let me know how it goes! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hello! I am creating the below workflow to analyze behavioral videos and I have had a lot of success with the actual video processing, but I have had to manually write the file names for individual output files and would love to have the following sequence essentially capture the file name, and give it to the output nodes automatically: GetFileNameWithoutExtension -> Format -> externalized FileName -> CsvWriter/VideoWriter.
But for some reason, this works once, and then the next time you try to run the sequence with a new file indicated in the first FileName property source node, the workflow breaks because the output fileName is not refreshing with the new filename I am trying to push through that sequence . (If I have overwrite on it will simply write the new files data to the old files name). If I view the formatted filenames they are correct given the new file, but they are not delivering that to the CSV writer as I would expect.
Does anyone have any solutions for me?
All reactions