pipda.reference
Provides Symbolic and Reference classes
Reference
(
parent
,ref
)
— The Reference class, used to define how it should be evaluatedaccording to the context for references, for example,f.A
,f['A']
or the references of them (i.e.f.A.B
,f.A['b']
, etc) </>ReferenceAttr
— Attribute references, for example:f.A
,f.A.B
etc.</>ReferenceItem
— Subscript references, for example:f['A']
,f.A['B']
etc</>
pipda.reference.
Reference
(
parent
, ref
)
The Reference class, used to define how it should be evaluatedaccording to the context for references, for example, f.A
, f['A']
or
the references of them (i.e. f.A.B
, f.A['b']
, etc)
parent
(any) — The parent of this reference. For example:f.A
forf.A.B
ref
(any) — The reference. For example:B
forf.A.B
__array_ufunc__
(
ufunc
,method
,*inputs
,**kwargs
)
(FunctionCall) — Allow numpy ufunc to work on Expression objects</>__getattr__
(
name
)
(ReferenceAttr) — Wheneverexpr.attr
is encountered,return a ReferenceAttr object </>__getitem__
(
item
)
(ReferenceItem) — Wheneverexpr[item]
is encountered,return a ReferenceAttr object </>__hash__
(
)
(int) — Make it hashable</>__index__
(
)
— Allow Expression object to work as index or part of slice</>__iter__
(
)
— Forbiden iterating on Expression objects</>__str__
(
)
(str) — Used for stringify the whole expression</>
__array_ufunc__
(
ufunc
, method
, *inputs
, **kwargs
)
→ FunctionCall
Allow numpy ufunc to work on Expression objects
__getattr__
(
name
)
→ ReferenceAttr
Whenever expr.attr
is encountered,return a ReferenceAttr object
__getitem__
(
item
)
→ ReferenceItem
Whenever expr[item]
is encountered,return a ReferenceAttr object
pipda.reference.
ReferenceAttr
(
parent
, ref
)
Attribute references, for example: f.A
, f.A.B
etc.
parent
(any) — The parent of this reference. For example:f.A
forf.A.B
ref
(any) — The reference. For example:B
forf.A.B
__array_ufunc__
(
ufunc
,method
,*inputs
,**kwargs
)
(FunctionCall) — Allow numpy ufunc to work on Expression objects</>__getattr__
(
name
)
(ReferenceAttr) — Wheneverexpr.attr
is encountered,return a ReferenceAttr object </>__getitem__
(
item
)
(ReferenceItem) — Wheneverexpr[item]
is encountered,return a ReferenceAttr object </>__hash__
(
)
(int) — Make it hashable</>__index__
(
)
— Allow Expression object to work as index or part of slice</>__iter__
(
)
— Forbiden iterating on Expression objects</>__str__
(
)
(str) — Used for stringify the whole expression</>
__array_ufunc__
(
ufunc
, method
, *inputs
, **kwargs
)
→ FunctionCall
Allow numpy ufunc to work on Expression objects
__getattr__
(
name
)
→ ReferenceAttr
Whenever expr.attr
is encountered,return a ReferenceAttr object
__getitem__
(
item
)
→ ReferenceItem
Whenever expr[item]
is encountered,return a ReferenceAttr object
__str__
(
)
→ str
Used for stringify the whole expression
pipda.reference.
ReferenceItem
(
parent
, ref
)
Subscript references, for example: f['A']
, f.A['B']
etc
parent
(any) — The parent of this reference. For example:f.A
forf.A.B
ref
(any) — The reference. For example:B
forf.A.B
__array_ufunc__
(
ufunc
,method
,*inputs
,**kwargs
)
(FunctionCall) — Allow numpy ufunc to work on Expression objects</>__getattr__
(
name
)
(ReferenceAttr) — Wheneverexpr.attr
is encountered,return a ReferenceAttr object </>__getitem__
(
item
)
(ReferenceItem) — Wheneverexpr[item]
is encountered,return a ReferenceAttr object </>__hash__
(
)
(int) — Make it hashable</>__index__
(
)
— Allow Expression object to work as index or part of slice</>__iter__
(
)
— Forbiden iterating on Expression objects</>__str__
(
)
(str) — Used for stringify the whole expression</>
__array_ufunc__
(
ufunc
, method
, *inputs
, **kwargs
)
→ FunctionCall
Allow numpy ufunc to work on Expression objects
__getattr__
(
name
)
→ ReferenceAttr
Whenever expr.attr
is encountered,return a ReferenceAttr object
__getitem__
(
item
)
→ ReferenceItem
Whenever expr[item]
is encountered,return a ReferenceAttr object
__str__
(
)
→ str
Used for stringify the whole expression