Skip to content

MNT: Remove or Reclarify nsem Planewave class #1823

Open

Description

@RylanDS7

Description of the maintenance task

The Planewave class in natural_source/sources.py is not being used and provides some confusion on the user side. I think this class should be removed, redefined, or not exposed to the end user.

Note: The 1D nsem getJ bug I was experiencing originated from the fact that I was accidently declaring sources with the Planewave class instead of PlanewaveXYPrimary. This confusion could be something that comes up with other users.

Current Planewave class from simpeg/electromagnetics/natural_source/sources.py:

class Planewave(BaseFDEMSrc):
    """
    Source class for the 1D and pseudo-3D problems.

    Parameters
    ----------
    receiver_list : list of simpeg.electromagnetics.frequency_domain.receivers.BaseRx
        A list of NSEM receivers
    frequency : float
        Source frequency
    """

    # This class is only provided to have a uniquely identifiable "Planewave" class
    pass

Activity

  1. added
    maintenance
    on Oct 17, 2026
  2. added this to the 0.27.0 milestone on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions