User Profile

Collapse

Profile Sidebar

Collapse
Raviexact
Raviexact
Last Activity: Nov 26 '14, 06:14 AM
Joined: Mar 12 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to replace only 1d values in 2d array after filter using numpy in python

    How to replace only 1d values in 2d array after filter using numpy in python without loop i.e in pythonic way.

    I want to filter only t2 rows and replace values in second column ( middle column ).


    example:

    >>> x = np.array([['t1',10,20],['t2',11,22],['t2',12,23], ['t3',21,32]])

    >>> x
    array([['t1', '10', '20'],
    ['t2', '11', '22'],
    ...
    See more | Go to post

  • Raviexact
    started a topic How to check signal emit finished in python

    How to check signal emit finished in python

    Hi,
    I have created one signal in python using pyside. I'm connecting with that signal 3 times with 3 different methods. when i emit this signal, it has to execute these 3 methods.
    It works perfectly fine.


    Code:
    ValueChanged = QtCore.Signal(list)
    
    ValueChanged.connect(method1)
    ValueChanged.connect(method2)
    ValueChanged.connect(method3)
    
    valueChanged.emit([1,2,3])
    ...
    See more | Go to post
    Last edited by Rabbit; Aug 28 '14, 03:42 PM. Reason: Please use [code] or [/code] tags when posting code or formatted data.

  • Raviexact
    started a topic Assigning datatype to variable in python

    Assigning datatype to variable in python

    Hi,

    I've created new signal , where i specify list and object datatype.

    dataChanged = QtCore.Signal(l ist, object)

    But list and object datatype don't convey properly that what will be in list and in the object.
    So it would be good if we could declare something like this,

    dataChanged = QtCore.Signal(l st_employees, obj_sender)

    so that, if anyone sees the code, would understand...
    See more | Go to post

  • Raviexact
    started a topic Add attributes to function in python

    Add attributes to function in python

    Hi,

    I would like to add some descriptions to functions on top of every function

    ex :

    [Name = 'Test menu', Default=True, etc..]
    def test():
    pass


    My actual scenario is , I create Menus dynamically by reading all methods from a module at run time.

    So i don't want to take menu name as test, i want user to provide menu name on his wish in "Name"...
    See more | Go to post

  • How to set width of PySide.QtGui.QDockWidget in python

    Friends,

    I'm completely new to python, i have question with setting width of PySide.QtGui.QD ockWidget in python.

    I have MainWindow class in python which inherits QtGui.QMainWind ow ( PySide ) and have added
    one left dock widget with simple plot and
    one right dock widget with simple plot and
    embedded simple plot in central widget.

    I have to set width of each dock window.
    ...
    See more | Go to post
No activity results to display
Show More
Working...