Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.