bugpyFormex - Bugs: bug #38109, notConnectedTo

 
 

bug #38109: notConnectedTo

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Thu 17 Jan 2013 03:51:04 PM UTC  
 
Category: CoreSeverity: 4 - Important
Item Group: Functionality errorStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 19 Jan 2013 12:32:26 PM UTC, comment #1:

Fixed in commit 336fb0c

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 17 Jan 2013 03:51:04 PM UTC, original submission:

in connectivity.py

def notConnectedTo(self,nodes):
"""Return a list of elements not connected to the specified nodes.

`nodes`: a single node number or a list/array thereof

Returns an int array with the numbers of the elements that
do not contain any of the specified nodes.

Example:

>>> Connectivity([[0,1,2],[0,1,3],[0,3,2]]).notConnectedTo(2)
array([0, 1])
"""
connected = self.connectedTo(nodes)
return complement(nodes,self.nelems())

I think the last line should be:
return complement(connected,self.nelems())

gianluca de santis <gianlucadesi>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 19 Jan 2013 12:32:26 PM UTCbverhegCategoryNone=>Core
      Item GroupNone=>Functionality error
      StatusNone=>Fixed
      Assigned toNone=>bverheg
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1