Skip to content

gz is a required parameter for gravity inversion and tmi is required for mag inversion, which prevents inversion of component- or gradient-only data #563

@nwilliams-kobold

Description

@nwilliams-kobold

We’re trying to run a Falcon guv+gxy inversion in geoapps 0.9.2 , and it seems that it is not possible without defining gz?
OptionalValidationError: Cannot set a None value to non-optional parameter: gz_channel.

We are creating the geoh5 and json files directly using geoapps.inversion.potential_fields.gravity.params rather than using the GUI:

json_out = params.GravityParams(
…
    gz_channel_bool = False,
    gz_channel = None,
    guv_channel_bool = True,
    guv_channel = data_uid,
    guv_uncertainty = error_uid,
…
)
json_out.write_input_file(…)

The solution seems to be allowing gz to be optional, but requiring at least 1 of the possible components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions