Git Product home page Git Product logo

Comments (4)

aestrivex avatar aestrivex commented on July 3, 2024

Hi Ralf, what version of bctpy are you using?
On Feb 5, 2016 10:26 AM, "rschmaelzle" [email protected] wrote:

Hi, am trying to reorder adjacency matrices by community-membership. I get
the error:

File "", line 9, in
[new_mat1, newmat2] = bct.reorder_mod(adj_time1234[:,:,i], my_comm.values());
File "/Users/Ralf/anaconda/lib/python2.7/site-packages/bct/utils/visualization.py", line 677, in reorder_mod
#if old == om[0]:
UnboundLocalError: local variable 'old' referenced before assignment

I compared the code to the matlab version but did not fully understand the
differences.
Best, Ralf.


Reply to this email directly or view it on GitHub
#35.

from bctpy.

rschmaelzle avatar rschmaelzle commented on July 3, 2024

HI roan,
thanks for the quick reply
pip freeze says its bctpy==0.4.1
If i try pip install --upgrade bctpy it says it is up to date. On github I
see there is 0.5.0 - should I install manually. Also, I cannot get version
from within python via bct.version
Sorry, but I am still a python beginner (coming from matlab)
best, ralf.

On Fri, Feb 5, 2016 at 10:34 AM, Roan LaPlante [email protected]
wrote:

Hi Ralf, what version of bctpy are you using?
On Feb 5, 2016 10:26 AM, "rschmaelzle" [email protected] wrote:

Hi, am trying to reorder adjacency matrices by community-membership. I
get
the error:

File "", line 9, in
[new_mat1, newmat2] = bct.reorder_mod(adj_time1234[:,:,i],
my_comm.values());
File
"/Users/Ralf/anaconda/lib/python2.7/site-packages/bct/utils/visualization.py",
line 677, in reorder_mod
#if old == om[0]:
UnboundLocalError: local variable 'old' referenced before assignment

I compared the code to the matlab version but did not fully understand
the
differences.
Best, Ralf.


Reply to this email directly or view it on GitHub
#35.


Reply to this email directly or view it on GitHub
#35 (comment).

from bctpy.

aestrivex avatar aestrivex commented on July 3, 2024

Can you send me the input matrix which caused this error? You can send it
to [email protected]

I don't recommend updating to the dev version right now. I hope to release
0.5.0 fully in about two weeks.

On Fri, Feb 5, 2016 at 10:43 AM, rschmaelzle [email protected]
wrote:

HI roan,
thanks for the quick reply
pip freeze says its bctpy==0.4.1
If i try pip install --upgrade bctpy it says it is up to date. On github I
see there is 0.5.0 - should I install manually. Also, I cannot get version
from within python via bct.version
Sorry, but I am still a python beginner (coming from matlab)
best, ralf.

On Fri, Feb 5, 2016 at 10:34 AM, Roan LaPlante [email protected]
wrote:

Hi Ralf, what version of bctpy are you using?
On Feb 5, 2016 10:26 AM, "rschmaelzle" [email protected] wrote:

Hi, am trying to reorder adjacency matrices by community-membership. I
get
the error:

File "", line 9, in
[new_mat1, newmat2] = bct.reorder_mod(adj_time1234[:,:,i],
my_comm.values());
File

"/Users/Ralf/anaconda/lib/python2.7/site-packages/bct/utils/visualization.py",
line 677, in reorder_mod

#if old == om[0]:
UnboundLocalError: local variable 'old' referenced before assignment

I compared the code to the matlab version but did not fully understand
the
differences.
Best, Ralf.


Reply to this email directly or view it on GitHub
#35.


Reply to this email directly or view it on GitHub
#35 (comment).


Reply to this email directly or view it on GitHub
#35 (comment).

from bctpy.

aestrivex avatar aestrivex commented on July 3, 2024

Reproduced and fixed now in development code.

from bctpy.

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.