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

Simplify the APIs for simulation_output_to_xr() and write_simulation_output_to_file(). #38

Merged
1 commit merged into from
Apr 12, 2024

Conversation

copybara-service[bot]
Copy link

Simplify the APIs for simulation_output_to_xr() and write_simulation_output_to_file().

There was a lot of copied code when trying to use sim.run() directly without using simulation_app.main(). This reduces that.

Copy link

google-cla bot commented Apr 10, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@araju
Copy link
Contributor

araju commented Apr 10, 2024

@allen-adastra - fyi, this changes the API of the function you introduced. Doing this to simplify some other code we are writing which uses TORAX.

@copybara-service copybara-service bot force-pushed the test_623473383 branch 3 times, most recently from 243da71 to 18d4ed9 Compare April 12, 2024 10:22
…on_output_to_file()`.

There was a lot of copied code when trying to use `sim.run()` directly without using `simulation_app.main()`. This reduces that.

PiperOrigin-RevId: 624116183
@copybara-service copybara-service bot closed this pull request by merging all changes into main in b9dfce9 Apr 12, 2024
@copybara-service copybara-service bot deleted the test_623473383 branch April 12, 2024 10:29
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