Skip to content

Conversation

@luca-s
Copy link
Contributor

@luca-s luca-s commented Jan 13, 2026

This PR is an attempt to address issue #172.

I wasn’t able to get SWIG to generate proper bindings (automatic conversion to python float or None) for a class member of type Seiscomp::Core::Optional<double>. As an alternative, this PR adds explicit getter and setter methods to the Python bindings: TravelTime.get_azi() and TravelTime.set_azi().

I also noticed that other class members of type Seiscomp::Core::Optional<double> within the datamodel namespace already expose getters and setters, so this approach is consistent with existing patterns. That said, I’ll leave it to you, @gempa-jabe, to decide whether this is the preferred solution.

@cla-bot cla-bot bot added the cla-signed The CLA has been signed by all contributors label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The CLA has been signed by all contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant