v1.0.0: Merge pull request #804 from google-deepmind:onnx-docs #1227
jcitrin
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Key Highlights
This release focuses heavily on internal refactoring, code simplification, and improving the structure and consistency of outputs and configurations, as well as releasing new physics features. Users will notice significant changes in how simulation data is organized and accessed, as well as improvements to documentation and configuration handling. A TORAX API is defined and breaking changes (e.g. in existing config structure, input and output variable names) will be avoided throughout TORAX v1, ensuring stability for user applications even as new features roll out.
TORAX API
The following objects are released as part of the TORAX API:
Classes and functions for loading configs and running a simulation:
build_torax_config_from_file
import_module
ToraxConfig
run_simulation
Classes returned by the simulation:
StateHistory
CoreProfiles
SourceProfiles
CoreTransport
PostProcessedOutputs
SolverNumericOutputs
SimError
If you would like further classes or methods exposed please reach out to us.
Physics features
Sawtooth modeling
Solver
class and implements an alternative simulation step if a sawtooth is triggered. If a state-dependent condition is triggered, then the kinetic profiles and plasma current are redistributed over a short user-defined timestep. Currently simple trigger and redistribution models are implemented, setting a user-defined critical magnetic shear at the q=1 surface as the trigger, flattening the profiles inside q=1 and redistributing them up to a user-defined mixing radius while conserving energy and total current.Neoclassical API
UX improvements
PyPI availability
Both TORAX v0.3.3 and v1.0.0 are now available on PyPI. Can pip install torax.
Output Restructure and Renaming:
A major effort has been undertaken to standardize and improve the organization and naming of output variables. This output structure will be maintained for TORAX v1. This includes:
core_profiles
,core_sources
,geometry
,core_transport
andpost_processed_outputs
into three distinct categories. These arexarray.DataTrees
contained in the top-levelxarray.DataTree
:profiles
: containing 1D profile valuesscalars
: containing scalar quantitiesnumerics
: containing quantities relating to solver numericsDataset
coordinatesConfiguration Refactoring and Renaming:
The configuration system has been significantly updated for better clarity and consistency. This configuration structure will be supported throughout TORAX v1. This involves:
See the documentation at https://torax.readthedocs.io/en/v1.0.0/configuration.html
Improved Documentation:
Significant updates have been made throughout the documentation. Streamlined launching of the notebook tutorials.
Removal of env vars
All environment variables used for setting various paths in TORAX have been removed. These are now configured in the config dict and Pydantic ToraxConfig.
Additional output variables
Bugfixes
This discussion was created from the release v1.0.0: Merge pull request #804 from google-deepmind:onnx-docs.
Beta Was this translation helpful? Give feedback.
All reactions