Coder Social home page Coder Social logo

Comments (16)

blink1073 avatar blink1073 commented on May 1, 2024

How about deferring the actual import to within the _open methods where possible? This will work for tifffile and swf.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

See #98 for implementation.

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Yes, that makes sense. Setup.py won't need changing, but people who freeze an app that makes use of imageio should include these _tiffile.py and the likes. Maybe we can provide some functionality to help such users.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

I have no experience with freezing, and I'm on OSX.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

Would you like a PR that defers loading of _swf.py?

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

I got cx_freeze working and verified that mimread and mimsave work with a mult-page tif file.

from imageio.

almarklein avatar almarklein commented on May 1, 2024

But I suppose that you had to add _tiffile.py or tiffile.py (the 5k one) to the includes?

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

The only change I made to imageiotest_freeze.py was to remove this line, because that function does not exist in freeze.py.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

I assume that function should have been needed, in which case it looks like the frozen folder is not truly isolated.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

I also noticed that when the app is frozen it cannot pull files from github due to an https error with urlparse. I think freezing is an antipattern for many reasons.

from imageio.

almarklein avatar almarklein commented on May 1, 2024

I think freezing is an antipattern for many reasons.

haha, very True. Ah well, we'll see what happens.

Would you like a PR that defers loading of _swf.py?

Forgot to answer that: Sure, since its already split, it should be easy. To do the same for e.g. DICOM would need some refactoring; we can safe that for later.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

Sure, I'll take a stab at both PRs. Are you going to the SciPy conference by chance?


Sent from Mailbox

On Sun, Jul 5, 2015 at 1:42 PM, Almar Klein [email protected]
wrote:

I think freezing is an antipattern for many reasons.
haha, very True. Ah well, we'll see what happens.
Would you like a PR that defers loading of _swf.py?

Forgot to answer that: Sure, since its already split, it should be easy. To do the same for e.g. DICOM would need some refactoring; we can safe that for later.

Reply to this email directly or view it on GitHub:
#33 (comment)

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Nope, I'm going to Euroscipy in August.

from imageio.

blink1073 avatar blink1073 commented on May 1, 2024

Ah well, perhaps Google Hangout sometime to discuss strategy?


Sent from Mailbox

On Sun, Jul 5, 2015 at 1:52 PM, Almar Klein [email protected]
wrote:

Nope, I'm going to Euroscipy in August.

Reply to this email directly or view it on GitHub:
#33 (comment)

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Yes, would be good!

from imageio.

almarklein avatar almarklein commented on May 1, 2024

Closing this, since we've made good progress here, and #110 is on the way to help more.

from imageio.

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.