Commit graph

62 commits

Author SHA1 Message Date
Eshed Magali
ba94c58230
Closing the stdout file descriptor when finished (#3864) 2026-03-11 16:50:58 +00:00
Boris Polania
9b675adda5
Introduce SlicePlot and VoxelPlot to replace the Plot class (#3528)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-12-05 20:17:09 +00:00
Patrick Shriwise
1b68e61a3e explicit instance check 2023-02-21 00:47:47 -06:00
Patrick Shriwise
461fd54f11 Updating doc strings 2023-02-16 13:53:57 -06:00
Patrick Shriwise
0e10a7da47 Allowing openmc.Pathlike for restart file argument 2023-02-16 13:48:11 -06:00
Paul Romano
bbe39dbc1b Added some missing versionadded directives 2023-01-13 13:41:00 +07:00
Patrick Shriwise
f3bcad37b7 Addressing comments from @paulromano 2022-12-12 21:30:05 -06:00
Patrick Shriwise
145594ebb8
Apply @paulromano suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-12 20:23:49 -06:00
Patrick Shriwise
5634d8318a Changing name of input argument for Python executor 2022-12-06 14:40:59 -06:00
Patrick Shriwise
d9847163e8 Adding ability to specify an input filename to the executable or to the python exec 2022-12-06 13:03:38 -06:00
Jonathan Shimwell
476feab519 changing the description of tracks arg 2022-09-09 11:40:15 +01:00
Paul Romano
a61f3f534b Fix use of cwd in plot_inline and Plot.to_ipython_image 2022-03-31 14:49:31 -05:00
Paul Romano
66ef28a385 Remove convert_exec arguments, update documentation 2021-10-06 11:51:38 -05:00
Paul Romano
75b3d18446 Merge branch 'develop' into libpng 2021-10-05 12:49:35 -05:00
agnelson
c9e91d42fb Replacing manual absolute error tests with pytest.approx, improving documentation, and other small changes per the review by @paulroman. 2021-10-05 08:39:24 -05:00
Paul Romano
d8043b6098 Support png files in plot_inline and Plot.to_ipython_image 2021-10-04 15:48:45 -05:00
agnelson
e4476fc0b7 Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference 2021-10-01 09:21:41 -05:00
agnelson
e8081207d7 Modified the C API to support setting material temperatures and to support setting the event based flag. Fixed failing MPI test. 2021-09-30 16:34:58 -05:00
agnelson
dc80b799ac Resolving comments from @paulromano and updating tests accordingly 2021-09-29 18:51:00 -05:00
agnelson
e62ba9b85a Upgrading tests of model, and adding better file management, Model.calculate_volumes method and Model.plot_geometry method. These last two still need to be tested as well as Model.deplete 2021-09-28 08:44:31 -05:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Paul Romano
d19512b454 Account for exceptions/segfaults in _run function 2021-03-09 13:31:53 -06:00
Paul Romano
a367d27905 Include error message in exception when openmc.run fails 2021-03-08 10:40:38 -06:00
Paul Romano
5547ecf88f Add versionadded directive for new arguments/functions in 0.12 2020-04-10 21:52:43 -05:00
alex-lyons
5a9fe17323 remove unneeded import 2020-03-27 07:47:51 -05:00
alex-lyons
1312a1cc63 Obtain last statepoint from a glob of output dir. Reverted regex filter in executor as this is no longer needed 2020-03-27 07:47:49 -05:00
alex-lyons
954154fa48 Changed PyAPI model and executor to read correct last statepoint after runs with trigger, including new test case 2020-03-27 07:46:47 -05:00
Paul Romano
e92044bc4b Remove unused import in executor.py 2020-03-23 20:44:34 -05:00
John Tramm
e0da6af91e added command line argument for event-based mode. 2020-01-24 02:31:00 +00:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
126cb65113 Don't check returncode in tests 2018-01-23 07:18:33 -06:00
Paul Romano
1f816bb919 Raise CalledProcessError if openmc.run fails 2018-01-23 06:21:42 -06:00
Paul Romano
d2c7486cfc Address @wbinventor comments on #826 2017-03-10 10:43:01 -06:00
Paul Romano
3913d55e2c Allow color names, rename Plot attributes, add openmc.plot_inline() 2017-03-08 14:24:37 -06:00
Paul Romano
5e9b06a861 Better use of verbosity 2017-03-02 09:17:00 -06:00
Paul Romano
106bb0dbe8 Address a few comments from @wbinventor 2017-03-01 21:14:33 -06:00
Paul Romano
fdd7b292ca Ability to run volume calculation with MPI from Python API 2017-02-27 07:36:55 -06:00
Paul Romano
a4dbcca90d Merge branch 'develop' into volume 2017-02-27 07:26:25 -06:00
Adam Nelson
14f6185744 resolved @wbinventor comments on the mesh and executor 2017-02-26 05:39:20 -05:00
Adam Nelson
fc3df18eab Added an openmc.run mode (summary, which just shows the timing and summary results; fixed the generation of cells from a mesh (incorrect ordering of universes in the lattice), xs_shapes for delayed groups had wrong ordering (fixed) in openmc.MGXSLibrary and openmc.Plotter, fixed error in multi-group plots which only plotted one group not all, fixed issue with setting max order to 0 for Legendre scattering (not legendre converted to tabular w/in OpenMC, the default), removed superfluous xs assignments in MG mode which only slowed things down 2017-02-25 08:17:10 -05:00
Paul Romano
f40578dd26 Ability to run volume calculation mode from command line or Python API 2017-02-23 22:23:00 -06:00
Paul Romano
f28a0fcdda Allow arbitrary MPI arguments in openmc.run() 2017-02-17 09:59:25 -06:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Paul Romano
ad7bff393d Make sure to capture stderr when using openmc.run() 2016-04-27 15:36:36 -05:00
Paul Romano
1e57cb8407 Respond to @wbinventor comments on #632 2016-04-26 07:08:03 -05:00
Paul Romano
50a80693b5 Rename main Python API classes to get rid of File. 2016-04-25 10:37:06 -05:00
Paul Romano
cccca4062a Goodbye openmc.Executor. Hello openmc.run and openmc.plot. 2016-04-25 09:04:52 -05:00
Paul Romano
72659506e0 Use universal newlines in openmc.Executor 2016-02-23 09:26:37 -06:00
Will Boyd
c58c5639de Python API Executor now waits until process has finished before returning from run_simulation(...) routine even if output=False 2015-09-29 09:22:51 -04:00