REopt_API
REopt_API copied to clipboard
Tracking for API -> REopt.jl
This PR adds tracking information to pass to REopt.jl which calls the REoptTracking API for user and run tracking.
Below was generated from Github Copilot and is a little verbose and unnecessary.
This pull request introduces updates to the REopt.jl integration, including changes to dependency configuration, new metadata fields, and enhancements to the run_jump_model function. The most important changes focus on improving metadata handling and enabling better API and web tool support.
Updates to dependency configuration:
-
julia_src/Manifest.toml: Updated theREoptdependency to include a newrepo-rev(track-api) andrepo-urlpointing to the official repository. This ensures the latest version of the code is used.
Enhancements to metadata handling:
-
reoptjl/models.py: Added a newportfolio_uuidfield to the metadata dictionary, allowing for better tracking of portfolio-level data.
Improvements to the run_jump_model function:
-
reoptjl/src/run_jump_model.py: Enhanced therun_jump_modelfunction to:- Add support for distinguishing between web tool runs and direct API runs using new flags (
webtool_runanddirect_api_run). - Include additional metadata fields (
webtool_user_uuid,webtool_portfolio_uuid, andapi_run_uuid) for improved traceability. - Added a debug print statement to display the
Settingsdictionary for easier debugging.
- Add support for distinguishing between web tool runs and direct API runs using new flags (