Skip to content

Gpu - #29

Merged
jpdeleon merged 10 commits into
mainfrom
gpu
Jul 14, 2026
Merged

Gpu#29
jpdeleon merged 10 commits into
mainfrom
gpu

Conversation

@jpdeleon

Copy link
Copy Markdown
Owner

No description provided.

jpdeleon and others added 10 commits July 13, 2026 19:36
…i subcommand

Add a `quicklook` console script (with `ql` as a short alias) that groups
every subcommand — `run`, `read-tls`, `rank-tls`, and the new `gui` — so the
package runs as `uv run quicklook gui`, `uv run quicklook run --name ...`, etc.

- Add a `gui` subcommand that launches the Flask web GUI with `--host`,
  `--port`, and `--debug` options. The heavy Flask import stays deferred inside
  the command so `--help` remains fast.
- Refactor `quicklook/app/app.py` `main()` into `run_gui(host, port, debug)` so
  the launcher is reusable; `ql-gui` stays as an alias. Loopback-only bind and
  opt-in debugger behavior are preserved (an explicit `--debug` forces it on,
  otherwise `QUICKLOOK_DEBUG` is consulted).
- Repoint the `ql` console script at the unified Typer app. The old
  `quicklook.cli.ql:main` shim unconditionally injected `run`, which broke
  `ql read-tls`, `ql rank-tls`, and top-level `ql --help`. Drop that dead shim,
  keeping `sanitize_target_name` in the module.
- Tests: cover `gui --help`, option forwarding to `run_gui`, the `--debug`
  flag, and `run_gui` host/port/debug passthrough. Update the loopback-bind
  assertion to match the now-explicit default host.
- README: document `uv run quicklook <cmd>` usage and the `gui` subcommand.

Also folds in a pre-existing GUI worker logging fix (open the per-job log in
append mode so Loguru's separate append-mode descriptor no longer overwrites
interleaved stdout/stderr) and its regression test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011jyqtiWKpNN5yMbeMPHJfC
…t in-sector

For long-period planets the transit often falls outside the ~27-day TESS
sector that was downloaded (e.g. TOI-2074, P=177.6 d), so there is simply
nothing to mask. Previously `TessQuickLook` raised `PipelineError` ("No masked
transits") and aborted the whole quicklook, even though flattening, the TLS
search, and the plots can all still run.

- Replace the raise with `_warn_no_transits_in_sector()`, which logs a warning
  reporting the sector's BTJD coverage, the nearest predicted transit (and how
  far outside coverage it lands), and suggests other available sectors.
- Only apply ephemeris masking when there is at least one in-transit cadence.
- Tests: an out-of-baseline ephemeris yields an all-False mask, an in-baseline
  ephemeris flags cadences, and the warning path emits guidance without raising.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011jyqtiWKpNN5yMbeMPHJfC
@jpdeleon
jpdeleon merged commit f105976 into main Jul 14, 2026
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant