Skip to content

Create tutorial to get ZTF light curves from HATS catalog#325

Open
jaladh-singhal wants to merge 4 commits into
Caltech-IPAC:mainfrom
jaladh-singhal:ztf-lightcurves
Open

Create tutorial to get ZTF light curves from HATS catalog#325
jaladh-singhal wants to merge 4 commits into
Caltech-IPAC:mainfrom
jaladh-singhal:ztf-lightcurves

Conversation

@jaladh-singhal
Copy link
Copy Markdown
Member

Fixes IRSA-7768

@jaladh-singhal jaladh-singhal self-assigned this May 27, 2026
@jaladh-singhal jaladh-singhal added the content Content related issues/PRs. label May 27, 2026

with Client(n_workers=get_nworkers(ztf_lc_cone),
threads_per_worker=1,
memory_limit=None # each partition can be several GB; avoid per-worker cap
Copy link
Copy Markdown
Member Author

@jaladh-singhal jaladh-singhal May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was running out of memory locally without this. Let's see how it performs on CI.

right_on='oid',
how='inner'
)
combined_df
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI, I tried 3 more approaches before settling on this one (which takes takes 2m±5s both compute calls combined):

  1. ztf_objects_cone.join(ztf_lc_cone, ...).compute() takes 2m±5s
  2. ztf_objects_cone.merge(ztf_lc_cone, ...).compute() takes 2m±5s
  3. ztf_objects_cone.compute(); ztf_lc_cone.id_search(values={'objectid': list(ztf_objects_cone_df.oid)}).compute() took 2m50s

I kept this approach because of time as well as to maintain the narrative of keeping objects table search optional.

@bsipocz
Copy link
Copy Markdown
Member

bsipocz commented May 28, 2026

I've pushed a commit directly that fixes the oldestdeps job failure, review is to come separately

@bsipocz bsipocz added the GHA buildhtml Enable extra buildhtml job on GHA label May 28, 2026
@bsipocz
Copy link
Copy Markdown
Member

bsipocz commented May 28, 2026

I'm not sure what goes on in circleCI, we may actually hit that memory limit even though the graph doesn;t show it (but the resolution of the graph is pretty bad, so it's still my prime suspect for the reason for the failure) -- keep an eye on the GHA buildhtml job instead for now.

@jaladh-singhal
Copy link
Copy Markdown
Member Author

@bsipocz buildhtml job is getting skipped (I tried re-triggering it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Content related issues/PRs. GHA buildhtml Enable extra buildhtml job on GHA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants