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

FIX: select folder callback error on mac #84

Merged
merged 2 commits into from
Apr 5, 2023
Merged

Conversation

scott-huberty
Copy link
Member

@scott-huberty scott-huberty commented Apr 3, 2023

Fixes #29

This works on my mac. Fixes the error we were getting by using the multiprocessing module to keep the process in the main thread execute this action in a separate process.

  • I'll test this out on my windows computer tomorrow morning. (UPDATE: Works).

@christian-oreilly Can you review/pull this branch and test it out on your side? (NOTE: this branch is on the lina-usc remote, NOT my fork.)

Fixes error by using the multiprocessing library to keep process in the main thread.
@christian-oreilly
Copy link
Collaborator

Folder loading works fine on my side too! On a side note (not for this PR), we should probably gracefully fail (e.g., pop up a message windows mentioning that this loaded path is not a BIDS project, or a LL output...) on a call to self.pipeline.load_ll_derivative(self.fpath) that does not have all the expected bits of info. For now, it just crash with the usual way when a Dash app crash.

@scott-huberty
Copy link
Member Author

Folder loading works fine on my side too!

Awesome!!! and agreed, that is a good idea.

@scott-huberty
Copy link
Member Author

@Andesha would you mind pulling this branch and trying out the select folder button, on your Linux computer?

@Andesha
Copy link
Contributor

Andesha commented Apr 5, 2023

can confirm this works for me

@scott-huberty
Copy link
Member Author

awesome! I am going to rebase with main and merge.

@scott-huberty scott-huberty merged commit 9779fe0 into main Apr 5, 2023
@christian-oreilly christian-oreilly deleted the select_folder_fix branch April 29, 2023 13:22
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

Successfully merging this pull request may close these issues.

Selection of a directory in dash
3 participants