question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find a way to consistently find the ADS_logo via the FSLeyes plugin

See original GitHub issue

I 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 : Screen Shot 2019-04-04 at 7 47 34 PM

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:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mathieuboudreaucommented, Apr 7, 2019

A workaround is to resize the logo file manually and display the full-resolution-manually-resized logo.

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.

0reactions
Stoyan-I-Acommented, Apr 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found