Git Product home page Git Product logo

Comments (5)

bgilbert avatar bgilbert commented on August 23, 2024 1

Great idea. I've moved it to examples/deepzoom/deepzoom_multiserver.py in OpenSlide Python.

from openslide-python.

bgilbert avatar bgilbert commented on August 23, 2024

Are you seeing tiles loaded in the wrong places, or are the tiles themselves incorrect? Could you upload a screenshot?

Are you caching OpenSlide objects in your application?

from openslide-python.

cbachini avatar cbachini commented on August 23, 2024

This is what happens when I zoom while other client is accessing a different slide.

image

"Are you caching OpenSlide objects in your application?" I realy don't know. I'd changed deepzoom_server.py to serve our slides in a simple way. My main language is PHP so I've no idea about cache with Flask or pure python.

from openslide-python.

bgilbert avatar bgilbert commented on August 23, 2024

When and where do you create new OpenSlide objects? It sounds as though you might be overwriting app.slides in one worker thread while another worker thread expects it to refer to the original OpenSlide.

Here is an example server that handles multiple slide files. Notice that it maintains a cache of recently-used OpenSlide objects. This is better than reopening the slide on every tile request, since creating an OpenSlide object can be expensive.

from openslide-python.

cbachini avatar cbachini commented on August 23, 2024

It worked fine! Thank you very much! It solved this and some other issues.

The slidedeck is so important that I suggest you to include it in the openslide-python examples folder. I think that this code can help a lot of people.

from openslide-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.