Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving a list of links from an ObservationCollection object. #113

Closed
tristandijkstra opened this issue Sep 29, 2023 · 1 comment
Closed

Comments

@tristandijkstra
Copy link
Contributor

Hi,

Related to these two PRs i'd like to retrieve a list of linkDefinitions from an observation collection. Below is an example of how I currently do it.

tudat-team/tudatpy-examples#28
#110

# Transform the MPC observations into a tudat compatible format.
observation_collection, links = batch.to_tudat(bodies=bodies)

# set create angular_position settings for each link in the list.
observation_settings_list = list()
for link in list(links.values()):
    observation_settings_list.append(observation.angular_position(link))
@DominicDirkx
Copy link
Member

Functionality has been added with latest commit to develop:

c967acb

and associated commit to tudat develop branch.

The new ObservationCollection.get_link_definitions_for_observables function (with observable type as input) returns a list of LinkDefinition objects used for that observable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants