Skip to content

Simple Peppi query has long runtimeΒ #104

@tyleryy

Description

@tyleryy

Checked for duplicates

Yes - I've already checked

πŸ› Describe the bug

Simple Peppi query that runs for a very long time or doesn't finish after several minutes.

πŸ•΅οΈ Expected behavior

I expected the query to finish in a reasonable amount of time.

πŸ“œ To Reproduce

Run this:

import pds.peppi as pep
from datetime import datetime

# Create a client connection to the PDS Registry
client = pep.PDSRegistryClient()

# Define context identifiers
pluto_target_id = "urn:nasa:pds:context:target:dwarf_planet.134340_pluto"
new_horizons_mission_id = "urn:nasa:pds:context:investigation:mission.new_horizons"

# Query for Pluto data from New Horizons
pluto_products = pep.Products(client).has_investigation(new_horizons_mission_id) \
                                    .has_target(pluto_target_id) \
                                    .observationals()

# Display products
for i, p in enumerate(pluto_products):
    if i >= 1: break  # Just show first 5
    print(f"{p.id}: {p.properties.get('ops:Label.ops:title', 'No title')}")

πŸ–₯ Environment Info

  • on macbook sequoia 15
  • ran inside jupyter notebook

πŸ“š Version of Software Used

  • pds.peppi==0.7.0
  • python version: 3.11.4

🩺 Test Data / Additional context

No response

πŸ¦„ Related requirements

πŸ¦„ #xyz

βš™οΈ Engineering Details

No response

πŸŽ‰ Integration & Test

No response

Metadata

Metadata

Assignees

Type

Projects

Status

🏁 Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions