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

Getting Current Qupath Program #71

Open
HistoCleanQUB opened this issue May 26, 2022 · 4 comments
Open

Getting Current Qupath Program #71

HistoCleanQUB opened this issue May 26, 2022 · 4 comments
Labels
question Further information is requested

Comments

@HistoCleanQUB
Copy link

Hi,

Really excellent work with this, just a quick question. Is there an easy way to get the file path of the QuPath Program directory that is being used in the paquo environment??

Hope this makes sense,
Many thanks

@ap--
Copy link
Collaborator

ap-- commented May 26, 2022

Hi @HistoCleanQUB,

This is currently not provided by a public interface.
We could make this information easily available.
Can I ask what's your specific use case?

As of now, you can get that information by doing:

>>> from paquo.jpype_backend import find_qupath
>>> from paquo._config import to_kwargs, settings
>>> find_qupath(**to_kwargs(settings))
(PosixPath('/Applications/QuPath.app/Contents/app'),
 PosixPath('/Applications/QuPath.app/Contents/runtime/Contents/Home'), 
 PosixPath('/Applications/QuPath.app/Contents/runtime/Contents/Home/lib/libjli.dylib'),
 ['-XX:MaxRAMPercentage=50', '-Djava.library.path=/Applications/QuPath.app/Contents/app'])

You would usually configure your .paquo.toml to determine which QuPath you want to use.

Cheers,
Andreas

@ap--
Copy link
Collaborator

ap-- commented May 30, 2022

A simple way to determine which version you a running is to execute:

paquo --qupath-version

in your commandline. (This of course doesn't let you differentiate in case you have the same version installed multiple times.

@HistoCleanQUB
Copy link
Author

That's fantastic thank you! I'm using paquo to run some deep learning models in pytoch then feed annotations back to QuPath. Just wondering if Ihad multiple versions of QuPath in the one search directory from the .toml file would there be a way to change to a specific version.

Many thanks

@ap--
Copy link
Collaborator

ap-- commented Jun 2, 2022

Glad I could help ❤️

In case you want to configure a specific version, you can set:

qupath_dir = "/path/to/your/Qupath"

in your .paquo.toml file. If qupath_dir is set, the search will be skipped.

Cheers,
Andreas 😃

@ap-- ap-- added the question Further information is requested label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants