Skip to content

[BUG]kWaveSimulation.py #632

@Liu2021xx

Description

@Liu2021xx

Due to this line of code self.sensor = kSensor(mask=torch.ones((Nx, Ny, max(1, Nz))), record=["p_final"]) ,Calling a property that does not belong to this class later resulted in an error,such as the self. sensor.time.rversal-boundary_data property
def time_rev(self):
"""
Returns:
True for time reversal simulaions using sensor.time_reversal_boundary_data

    """
    if self.sensor is not None and not isinstance(self.sensor, NotATransducer):
        if not self.options.simulation_type.is_elastic_simulation() and **self.sensor.time_reversal_boundary_data** is not None:
            return True
    else:
        return self.userarg_time_rev

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions