Commit graph

41 commits

Author SHA1 Message Date
Makarand More
a74c1424a8
Update check_type calls to accept both str and os.PathLike objects. (#3618)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-10-28 14:50:11 +00:00
John Vincent Cauilan
4c0e08bae8
Replace all deprecated Python typing imports and syntax with updated forms (#3085)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-18 17:40:42 +00:00
Chris Wagner
18cd81a6aa
added extra error checking on spherical mesh creation (#2973)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-05-25 03:27:37 +00:00
Jonathan Shimwell
3623408bc5 avoid namespace overwrite of union 2022-10-27 17:38:27 +01:00
Jonathan Shimwell
225dc5c43c create PathLike type for hints 2022-09-06 17:22:31 +01:00
Jonathan
2453b04b62 corrected multiline f strings 2021-07-31 22:33:45 +01:00
Jonathan
747094be1a returned to .format 2021-07-29 20:55:40 +01:00
Jonathan
268424cd34 another format to f string conversion 2021-07-29 20:36:10 +01:00
Jonathan
021aab9879 replaced .format with f strings 2021-07-29 20:28:51 +01:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Paul Romano
4ad2ad3ab8
Apply suggestions from @drewejohnson code review
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-03-25 06:45:03 -05:00
Paul Romano
91c1749b98 Changes in tallies.py from PullRequest Inc. review 2020-03-23 20:55:01 -05:00
Paul Romano
468361b62c Changes in checkvalue.py from PullRequest Inc. review 2020-03-23 20:44:34 -05:00
PullRequestOpen
6d0aa86cef Cosmetic fixes from PullRequest [2019-12-05] 2019-12-05 22:22:43 -06:00
Zhuoran Han
873523072d Split the lines for code format. 2018-05-16 15:43:10 -04:00
Zhuoran Han
4c5bdd4438 Checkvalue bug 2018-05-16 14:54:24 -04:00
Paul Romano
d41ac48467 Force all filters to have a .bins attribute that makes sense 2018-03-28 15:56:03 -05:00
Paul Romano
33dec88bd0 Add format spec for depletion results HDF5 file (add necessary attributes too) 2018-02-20 15:35:39 -06:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
deab4b3d33 Use empty-argument form of super() 2018-02-05 23:14:30 -05:00
Paul Romano
58bb9c18ee Address easy comments from @wbinventor 2017-02-22 14:50:16 -06:00
Paul Romano
0c616c8b22 Handle HDF5 format versions consistently 2017-02-21 21:26:21 -06:00
samuel shaner
bad3a2436d merged with upstream/develop 2016-07-05 19:33:36 +00:00
Sam Shaner
710f8a75b8 added chi-prompt, velocity, and prompt-neutron-lifetime mgxs 2016-07-04 17:15:51 -04:00
Paul Romano
c7a0b716d2 General cleanup -- both bugs and style issues -- based on running pylint 2016-07-02 11:04:25 +07:00
Paul Romano
395cfb092d Remove _isinstance and optimize check_type for ndarrays 2016-06-05 16:33:12 -05:00
Paul Romano
d9b097dbaf Make Materials, Plots, and Tallies list-like 2016-04-29 16:14:02 -05:00
Paul Romano
5a982241e2 Merge branch 'develop' into pyapi-changes 2016-03-09 08:29:55 -06:00
Paul Romano
b8c1ab68e9 Introduce CheckedList for type-checking Tally attributes that are lists 2016-03-09 08:23:18 -06:00
Paul Romano
9b152b0ddf Add property setters for Tally.scores, nuclides, filters, triggers 2016-02-23 09:26:37 -06:00
Adam Nelson
b3a588766e Added python api example of c5g7 pin, matches my by-hand version 2015-11-16 05:31:16 -05:00
Sterling Harper
65679c2220 Small fixes for #425 2015-08-07 20:36:21 -06:00
Sterling Harper
76e6133512 Merge remote-tracking branch 'upstream/develop' into pyapi_lattice_outer
Conflicts:
	openmc/checkvalue.py
	openmc/filter.py
2015-08-05 19:24:42 -06:00
Will Boyd
bf15c255c3 Added double quotes around exception msgs in Python API 2015-08-03 21:32:06 -07:00
Sterling Harper
2cda46e384 Fix Numpy type issue
Numpy integer types aren't recognized as an instance of Integral, at least not with numpy 1.8.2
2015-08-01 22:00:38 -06:00
Sterling Harper
315236ea58 Fix PyAPI HexLattice.get_unique_universes()
closes #413
2015-07-27 20:24:10 -06:00
Paul Romano
06d531aa39 Add check_greater_than and check_less_than functions 2015-06-30 16:19:53 +07:00
Paul Romano
98206be1fe Use collections.Iterable rather than collections.Sequence. Unfortunately
ndarrays are not sequences.
2015-06-29 07:50:07 +07:00
Paul Romano
a7a740d08c Add check_type, check_length, and check_value functions that reduce redundancy 2015-06-29 07:50:07 +07:00
Paul Romano
5aaf9974e9 Use collections.Sequence, numbers.Real, and numbers.Integral for checking for
appropriate types. This eliminates the checkvalue module.
2015-06-29 07:50:07 +07:00
Paul Romano
498e07d0bf Move Python API into openmc/ directory and move Python scripts into scripts/
directory.
2015-05-31 09:26:18 +07:00
Renamed from src/utils/openmc/checkvalue.py (Browse further)