Skip to content

Webservice - #132

Merged
stevehenke merged 40 commits into
mainfrom
webservice
Aug 17, 2026
Merged

Webservice#132
stevehenke merged 40 commits into
mainfrom
webservice

Conversation

@stevehenke

Copy link
Copy Markdown
Contributor
  • New browser UI + ptychodus-store service: FastAPI REST at /api/v1/*, MCP server at /mcp, TypeScript UI at /ui/, SQLite metadata cache reconciled by a filesystem watchdog — layout mirrors the Qt GUI (diffraction / probe / positions / object / product / fluorescence pages)
  • Support for multiple sets of diffraction patterns per product
  • Per-dataset detector settings; detector shape now inferred from the loaded dataset instead of separate width/height settings
  • Detector extent and bad-pixel mask shapes are now validated to match at load time
  • CXI reader/writer rewrite: broader dataset coverage in read, full round-trip on write
  • Product creation is enqueued so bulk imports no longer block the GUI
  • Deduplicated product item models; consistent visualization when a specific complex component is selected
  • Position sequence trim (begin/end) plus a fix to position transformations
  • Position-builder restructure mirrored into the probe and object builders for a consistent UX
  • Diffraction views restructured to match the product views
  • Auto-select the current product in the processing view whenever the repository is non-empty
  • Metadata values are shown in the wizard page before you apply them
  • Polarization and tilt-angle added to diffraction metadata
  • Fluorescence enhancement promoted to a top-level nav view; ImageView reused with a DecimalRangeSlider in place of the old min/max slider pair
  • GPU contexts are now acquired only inside reconstruction subprocesses, so the parent process no longer holds device state
  • Cleaner PtychoPINN subprocess interface
  • Standardized PluginChooser combo-box wiring across every panel
  • HTTP client is httpx everywhere (requests removed)
  • All documentation migrated from reStructuredText to MyST Markdown
  • New store and xraydb optional extras; new ptychodus-store entry point
  • Packaged CLIs moved from ptychodus.scripts.* to ptychodus.cli.*; facility token helpers and the podman wrapper live under the top-level scripts/ and are run from a checkout

stevehenke and others added 7 commits August 12, 2026 08:56
Restores the tree to 10ffc1d (2026-08-12 end of day) by undoing:
- 428c73c "Format code with ruff format"
- 4f5046f "Fix import order: ruff format requires standard library imports before from imports"
- 36d585b "Fix import order in all files: standard library imports before from imports"

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ruff 0.16 formats Python inside .md code blocks, which our pinned
0.15.18 (via ptychi) does not. CI installs ruff unpinned, so the
webservice branch has been failing Ruff (lint + format) since 10ffc1d.

Reformats docs/source/index.md and docs/source/initial_guesses.md
to match the project's single-quote convention and 0.16's dict-arg
reflow. No source-tree changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stevehenke
stevehenke marked this pull request as ready for review August 14, 2026 15:51
@stevehenke
stevehenke merged commit 9c42a28 into main Aug 17, 2026
8 checks passed
@stevehenke
stevehenke deleted the webservice branch August 17, 2026 20:21
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