cosimomarconcini/moka_3d ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool called MOKA 3D that fits 3D gas kinematics in spectral cubes. I want to be able to point it at a FITS cube and fit a rotating disk, an outflow, or a combined disk plus outflow model directly in cube space. It should work with wavelength or frequency spectral axes, use a simple YAML config file for runs, and expose a command line interface with commands like init config, validate, and run.
When a fit finishes, it should create a timestamped output folder with a summary JSON, a log file, diagnostic plots, model cubes, moment maps, and any optional energetics products. Please include a bundled example configuration and sample data so I can run the whole workflow end to end right away. Make the install straightforward with editable install support and an optional conda environment file. If you need to check current Python or FITS related docs online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit