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

Try to detect if somethings wrong with the provided project #38

Open
ap-- opened this issue Aug 13, 2020 · 0 comments
Open

Try to detect if somethings wrong with the provided project #38

ap-- opened this issue Aug 13, 2020 · 0 comments
Milestone

Comments

@ap--
Copy link
Collaborator

ap-- commented Aug 13, 2020

from @vankhoa21991

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-10-1c484506e8c5> in <module>
----> 1 qp = QuPathProject('./my_qupath_project', mode="a")
      2 qp.images  # <- access images via this
c:\somewhere\github\paquo\paquo\projects.py in __init__(self, path, mode, image_provider)
    197             for f in p_dir.iterdir():
    198                 if not f.match("*.backup"):
--> 199                     raise ValueError("will only create projects in empty directories")
    200             project = Projects.createProject(File(str(p_dir)), BufferedImage)
    201 
ValueError: will only create projects in empty directories

The project was a folder with images already added but no project.qpproj file.
Likely from a previous run, where QuPathProject.save wasn't called.

There should be a better error message in case this happens.

@ap-- ap-- added this to the v0.2 milestone Aug 13, 2020
@ap-- ap-- self-assigned this Aug 13, 2020
@ap-- ap-- removed their assignment Jul 16, 2023
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

No branches or pull requests

1 participant