Skip to content

tickets/SP-3142: Adapt rubin_sim.maf.batch infrastructure for progress measurement - #528

Open
ehneilsen wants to merge 13 commits into
mainfrom
tickets/SP-3142
Open

ehneilsen wants to merge 13 commits into
mainfrom
tickets/SP-3142

Conversation

@ehneilsen

Copy link
Copy Markdown
Collaborator

This PR has several parts:

  1. Added support for setting "constraints" in maf using arguments to pandas.DataFrame.query instead of (on in addition to) SQL queries. To apply SQL constraints to an hdf5, it needs to be converted to a sqlite3 database, and even when this is done in-memory, it is slow. This PR adds support for using pandas queries instead, so that chimeras can be stored in hdf5 (or potentially parquet) files and batches with constraints still run on them. This ended up being more complicated than initially anticipated. See the new text in docs/maf-api-metricbundles.rst.
  2. Added a command line tool to generate a collection of chimera hdf5 files.
  3. Added batches appropriate for progress tracking. The initial versions here are very sparse, and I anticipate that they will need to be augmented.
  4. Added drivers to run these batches on chimera, consdb, and baseline visit tables.

See docs/maf-progress.rst for a walk through the process from the user's point of view.

This issue was used as a test-bed for a few modes of using AI tools for software development that fall somewhere between "refactor this code that is already working" and "just do everything for me" in terms of developer involvement through the development of formal software engineering documents along side the code, and using edits of these documents instead of chats for most interaction with the AI. My lessons learned so far: this basic approach has promise, but the details of how I executed it needs significantly more refinement. It found and prevented bugs before the pull request that I would have missed, but also took more time to complete the change rather than less, and tended to over-complicate things.

@ehneilsen
ehneilsen marked this pull request as draft October 12, 2026 22:00
@ehneilsen
ehneilsen marked this pull request as ready for review October 23, 2026 21:25
ehneilsen and others added 13 commits December 1, 2026 09:47
Generated using AI
Generated using AI
These documents are artifacts of experiments in which traditional SE documents or documents inspired by such traditional SE docs were used to align AI context with human expectations, and record text generated by AI tools. Elements of lasting value have been added to the main docs: it may be useful for these to remain recorded in the branch as a record of how the code was written, but they are not valuable for inclusion in the merge.
Generated with AI.
Co-Authored-By: SLAC AI
Generated with AI
Co-Authored-By: SLAC AI
… the last date with visits from consdb

Generated using AI.
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