Giter VIP home page Giter VIP logo

Comments (4)

mshumko avatar mshumko commented on July 23, 2024

Hi @CassandraAuri,

I am able to reproduce this error. I also confirmed that this error affects the themis() imager instance.

As mentioned in this recent issue, it is a common bug with the Windows multiprocessing module. The permanent solution necessitates the removal of the multiprocessing module from themis-imager-readfile and rego-imager-readfile which @dchaddock mentioned is unlikely. This leaves asilib with two choices:

  1. Refactor a copy of the themis-imager-readfile and rego-imager-readfile source code in asilib. This is not difficult, but then asilib's loaders will be unsupported by the Calgary developers. Given that the THEMIS and REGO data format is stable, this should be OK.

  2. Instruct Windows users to use asilib inside of a if __name__ == '__main__': block as I show in the example below. This is an easy fix if you're writing scripts using asilib, but won't work if you put your asilib analysis code into our own module and import it.

The example below, slightly modified, works on my Windows 10 machine.

from datetime import datetime, timedelta

import asilib
from asilib.asi import rego

if __name__ == '__main__':
    time_range = (datetime(2021, 3, 18, 8, 0),
                datetime(2021, 3, 18, 8, 5))
    asi = rego.rego('GILL', time_range=time_range)
    # And run either one of these two commands
    asi.animate_fisheye()  # animate fisheye images

I'm leaning towards option 1, but I am open to ideas or suggestions.

from asilib.

CassandraAuri avatar CassandraAuri commented on July 23, 2024

So I talked to darren and name == 'main' will just have to be the solution since everything they have runs like that.

from asilib.

dchaddock avatar dchaddock commented on July 23, 2024

Hi all - I am going through Cassandra's code right now working on figuring out the best way to address the issue. Updates should be available in the next few days.

from asilib.

dchaddock avatar dchaddock commented on July 23, 2024

With the latest release of our readfile libraries this morning, this issue has been resolved. You can do the following do get up-to-date.

pip install --upgrade trex-imager-readfile themis-imager-readfile rego-imager-readfile

from asilib.

Related Issues (14)

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.