Code Monkey home page Code Monkey logo

laminar's People

Contributors

dependabot[bot] avatar dgellerup avatar kmayerb avatar

Watchers

 avatar  avatar

Forkers

kmayerb

laminar's Issues

laminar.iter_flow tests -- return order of results dictionary keys.

I love this package! Thanks for all the work developing it thus far.

I added some basic and more complex tests of iter_flow() on a forked repo

Screen Shot 2019-11-11 at 5 41 02 PM

Screen Shot 2019-11-11 at 5 31 54 PM

  1. Running them, one of the things I noticed is that varying the number of cores and the length of the iterable could cause the tests to fail which had otherwised passed. It seems that cause of the failures is the order in which the returned results dictionary returns keys. It does not always return in matching order to the iterable. This can make it hard to reassemble the results if order matters as it does in the tests, written.

I was running in Python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46)

pytest test/test_iterflow_complex.py -v
>>>  [print(k) for k in r.keys()]
-------------------------------------------- Captured stdout call --------------------------------------------
data[160-319]
data[0-159] ## <<-------------- **out of order**
data[320-479]
data[480-638]
data[639-797]
data[798-956]
data[957-1115]
data[1116-1274]
_________________
  1. In another test I explored whether I could increase the length of tuples being iterated through. At n = 66 (which creates tuple for all coordinates in an upper triangular 66x66 matrix), using cores = 2), iter_flow hangs on my machine, even thought it was perfectly happy with n = 65. I am going to look into this further tomorrow, but you might want to run these tests and see if you have similar issues. It may point to a hidden issue.

Thanks,
kmayerb

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.