Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ref_particle charge & mass as user options in dashboard #720

Merged

Conversation

proy30
Copy link
Contributor

@proy30 proy30 commented Sep 28, 2024

Dashboard currently does not support this and has ref. particle charge/mass hard-coded to -1.0 and 0.510998950 respectively.

  • Add to UI
  • Connect to Simulation
  • Validation:
    • For charge: Int & non-zeor
    • For mass: Greater than 0
  • Update export_template

@proy30 proy30 changed the title [WIP] Added ref_particle charge & mass as user options in dashboard [WIP] Add ref_particle charge & mass as user options in dashboard Sep 28, 2024
@proy30 proy30 self-assigned this Sep 28, 2024
@proy30 proy30 added the component: dashboard our browser based trame dashboard label Sep 28, 2024
@proy30
Copy link
Contributor Author

proy30 commented Sep 30, 2024

UI look - 9/29[
chrome_O6TlmYtDoq
]

Created additional_conditions variable to handle cases where validation is more than checking value_type
@proy30 proy30 changed the title [WIP] Add ref_particle charge & mass as user options in dashboard Add ref_particle charge & mass as user options in dashboard Oct 3, 2024
@proy30 proy30 requested a review from ax3l October 3, 2024 02:29
@ax3l ax3l assigned ax3l and unassigned proy30 Oct 3, 2024
@@ -53,7 +53,9 @@ def run_simulation():
# reference particle
Copy link
Member

@ax3l ax3l Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a follow-up PR, run_simulation() really needs to be moved into a more well-named file than Analyze/plot_PhaseSpaceProjections/phaseSpace.py please :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, addressed in #725!

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good!

@ax3l ax3l merged commit d6f70e4 into ECP-WarpX:development Oct 3, 2024
16 checks passed
@proy30 proy30 deleted the dashboard/add-ref-particle_user_inputs branch October 3, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard our browser based trame dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants