Bug #1627

Feature #1290: === Core: framework ===

Feature #1572: == Python ==

python API kvector_t missing basic operator

Added by a.glavic about 4 years ago. Updated about 3 years ago.

Status:RejectedStart date:08 Nov 2016
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


The python class interface to kvector_t is missing the basic subtract (sub) and divide (div) methods necessary for arbitrary vector combinations.

I'm using the following workaround in my script:
#expand kvector_t
kvector_t.__sub__=lambda self, other: self+(-1.0*other)
kvector_t.__div__=lambda self, other: self*(1./other)

(BA version 1.6.1)


#1 Updated by wuttke about 4 years ago

  • Parent task set to #1572

#2 Updated by pospelov about 3 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF