Skip to content

About the execution of the "example.py"Β #1

@tiffanychang0101

Description

@tiffanychang0101

Hi, I have some problem about running the "example.py".

  • running on terminal
  • using conda virtual environment, and following README to install the environment

When I run the code using CMU-1.svs,
the process will hanging at pp.calculate_filters("slides_mpp_otsu.csv", "", "tiles_filters.csv") without errors.
This phenomenon also happened when I using my own data.

In the other hand,
if I run the code below first, then run pp.calculate_filters("slides_mpp_otsu.csv", "", "tiles_filters.csv"),
(that is, run calculate_filters funtion separately)
it will success.

What happened to this phenomenon?
Is it related to ProcessPoolExecutor?

import wsi_preprocessing as pp

# if, for instance, CMU-1.svs is in your current directory:
slides = pp.list_slides(".")

pp.save_slides_mpp_otsu(slides, "slides_mpp_otsu.csv")

# this may take some minutes, depending on your local machine
pp.run_tiling("slides_mpp_otsu.csv", "tiles.csv")

Thank you so much!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions