Skip to content

Bax visualization extension - #275

Draft
MitchellAV wants to merge 21 commits into
mainfrom
develop-bax-extension
Draft

Bax visualization extension#275
MitchellAV wants to merge 21 commits into
mainfrom
develop-bax-extension

Conversation

@MitchellAV

@MitchellAV MitchellAV commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Added new bax visualization extension which displays plots related to bax algorithm runs

  • New Bax Visualizer extension added to extensions palette
  • Includes two tabs which displays two sets of plots
  • Plot variables can be independently controlled or excluded to produce 1D versions of plots
  • Plot options are dynamic to which algorithm was used. Currently supported are GridOptimize, EmittanceAlgorithm, and PathwiseSolenoidAlignment
    depending on the algorithm the plot options and 'result keys' are different, unused options are hidden

Additional updates

  • Added BADGER_TEMP_DIRECTORY, which is used by bax generator to store files
  • Added new directory to settings UI and defaults to the badger config folder path per system OS as folder temp
    i.e. Debian example ~/Library/Application Support/Badger/temp
  • If bax algorithm is used, creates a new temp folder inside the BADGER_TEMP_DIRECTORY which matches archive file name
  • Updated pre-commit-config.yaml
  • Added bax-algorithms to dependency in pyproject.toml for required external BAX algorithms
  • Fixes various issues with BO Visualization and Pareto Front extensions
  • Added specific exceptions to the pydantic_editor, to allow for the external BAX Algorithms from bax-algorithms which exist outside of the _supported_algorithms property from Xopt BaxGenerator
  • Added new exclusion list for pydantic fields which cause issue due to unsupported data types i.e. pd.DataFrame

Need to add back in EmittanceAlgorithm and PathwiseSolenoidAlignment once pydantic issues from bax-algorithms are addressed. xopt-org/bax_algorithms#12

Also requires PR from Xopt xopt-org/Xopt#442

@MitchellAV

Copy link
Copy Markdown
Collaborator Author

@dylanmkennedy Test the extension with the updated Xopt and bax-algorithm PR changes referenced to confirm desired function

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