feat!(pyargus): simplify the API surface
- Get rid of helper functions. It is not that much more verbose to create signals with `argus.FloatSignal(...)` than `argus.signal(..., dtype=argus.dtype.float64`). - Make the package hierarchy flat: everything is under `argus`. If this is an issue, it can be changed in the future. - Add type hints for interval types.
This commit is contained in:
parent
3714cd5936
commit
d39e3d3e12
14 changed files with 237 additions and 247 deletions
|
|
@ -115,11 +115,11 @@ impl ConstInt {
|
|||
}
|
||||
}
|
||||
|
||||
/// Create a constant _unsigned_ integer expression
|
||||
/// Create a constant *unsigned* integer expression
|
||||
///
|
||||
/// # Warning
|
||||
///
|
||||
/// Negating an unsigned integer during evaluation _may_ lead to the evaluation method
|
||||
/// Negating an unsigned integer during evaluation *may* lead to the evaluation method
|
||||
/// panicking.
|
||||
#[pyclass(extends=PyNumExpr, module = "argus")]
|
||||
pub struct ConstUInt;
|
||||
|
|
@ -162,7 +162,7 @@ impl VarInt {
|
|||
}
|
||||
}
|
||||
|
||||
/// Create an _unsigned_ integer variable
|
||||
/// Create an *unsigned* integer variable
|
||||
#[pyclass(extends=PyNumExpr, module = "argus")]
|
||||
pub struct VarUInt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue