Giter Site home page Giter Site logo

phasetransition's People

Contributors

franzflink avatar

phasetransition's Issues

numba: Invalid use of BoundFunction

If I execute my code, i get the following error statement. I guess it's a problem concerning my variable types, but as the wolff_update function works with a "growing list" i don't know how to replace the wolff_list.append([row,col]) at line 41.

Failed in nopython mode pipeline (step: nopython frontend)
Invalid use of BoundFunction(list.append for list(float64)) with parameters (list(int64))

  • parameterized
    [1] During: resolving callee type: BoundFunction(list.append for list(float64))
    [2] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (41)

File "MC_Metropolis_Wolff.py", line 41:
def wolff_update(grid,row,col,beta,wolff_list):

spin = grid[row][col]
wolff_list.append([row,col])
^

[1] During: resolving callee type: type(CPUDispatcher(<function wolff_update at 0x000001A0CF61E0D8>))
[2] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (63)

[3] During: resolving callee type: type(CPUDispatcher(<function wolff_update at 0x000001A0CF61E0D8>))
[4] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (63)

File "MC_Metropolis_Wolff.py", line 63:
def wolff(beta,grid):

new_q = - grid[i][j]
cluster_list = wolff_update(grid,i,j,beta,cluster_list)
^

[1] During: resolving callee type: type(CPUDispatcher(<function wolff at 0x000001A0CDF820D8>))
[2] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (80)

[3] During: resolving callee type: type(CPUDispatcher(<function wolff at 0x000001A0CDF820D8>))
[4] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (82)

[5] During: resolving callee type: type(CPUDispatcher(<function wolff at 0x000001A0CDF820D8>))
[6] During: typing of call at C:\Users\Joshua\Desktop\intro_to_comp_phys2\MC_Metropolis_Wolff.py (80)

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.