Skip to content

Simulator.simple_ir: width should always be > self.dt #851

Open
@matteobachetti

Description

@matteobachetti

Description of the Bug

The impulse response here is a simple series of ones that come after a certain delay. The user inputs a width of the series of ones. The number of ones is calculated as

        # Define constant impulse response
        h_ones = np.ones(int(width / self.dt)) * intensity

If width is smaller than self.dt, this operation gives no bins with one.

Steps/Code to Replicate the Bug

Call simple_ir with width = 0.1 * self.dt, e.g.

Expected Results

The list in ouput should be something like [0, 0, 0, 1]

Actual Results

It's [0, 0, 0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bug! Unexpected or unwanted behavior.help wantedWe need additional help with these issues!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions