Find a way to consistently find the ADS_logo via the FSLeyes plugin
See original GitHub issueI managed to install FSLeyes and my AxonDeepSeg branch. Here are the main steps I used (on MacOSX) :
- I followed the ADS documentation to install ADS (Used miniconda, created a venv). The only difference is that I cloned my branch instead of the master, and my venv is called
integTest1
- I used
conda install -c conda-forge fsleyes
to install fsleyes - I launched FSLeyes with the command
fsleyes
- Load plugin > ads_plugin.py > Yes
Then, when I tried to load the control panel, I got the following error :
This is the code that is currently used to find the logo file :
ads_path = Path(os.path.abspath(AxonDeepSeg.__file__)).parents[1]
logoFile = ads_path / 'docs' / 'source' / '_static' / 'logo_ads-alpha.png'
The ‘docs’ folder was simply not inside ‘site-packages’ Is there another/better way to find the logo file?
That being said, as a temporary fix I just created the folders it was looking for and the plugin worked correctly. Therefore, the installation method I used should work correctly on MacOSX.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
FSLeyes - FSL - FslWiki
FSLeyes (pronounced fossilise) is the FSL image viewer, released with FSL 5.0.10 onwards. Follow FSLeyes on Twitter to be notified of new ...
Read more >FSLeyes plugins - University of Oxford
You may wish to ask your local system adminsistrator or Python expert to help you with this. Finding plugins . Head to the...
Read more >fsleyes.plugins — fsleyes 1.5.0 documentation
Loads all plugins, including built-ins, plugin files in the FSLeyes settings directory, and those found on the FSLEYES_PLUGIN_PATH environment variable.
Read more >Troubleshooting — FSLeyes 1.5.0 documentation
If you see this warning, you can tell FSLeyes where FSL is located by clicking on the Locate $FSLDIR button, and selecting the...
Read more >Installing FSLeyes - University of Oxford
There are several ways to obtain and install FSLeyes. FSLeyes comes as a standard component of an FSL installation, but can also be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you mean storing a copy of the logo with the correct size in the repository for the GUI, so you can avoid resizing it with wxPython? If so, then I agree, this seems like the best solution for cross-platform compatibility.
On Linux, there is a bug with wxPython where it can’t properly resize images (instead of resizing the logo to 7% of its size, it will take the top-right corner of the logo that has the desired dimensions and display it). This makes the ADS logo invisible but the plugin still functions correctly.
A workaround is to resize the logo file manually and display the full-resolution-manually-resized logo.