mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Adding alias for CellbornFilter in the Python API
This commit is contained in:
parent
aaaff62135
commit
5e7f3f7efd
1 changed files with 9 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ class CellFromFilter(WithIDFilter):
|
|||
expected_type = Cell
|
||||
|
||||
|
||||
class CellbornFilter(WithIDFilter):
|
||||
class CellBornFilter(WithIDFilter):
|
||||
"""Bins tally events based on which cell the particle was born in.
|
||||
|
||||
Parameters
|
||||
|
|
@ -557,6 +557,14 @@ class CellbornFilter(WithIDFilter):
|
|||
expected_type = Cell
|
||||
|
||||
|
||||
# Temporary alias for CellbornFilter
|
||||
def CellbornFilter(*args, **kwargs):
|
||||
warnings.warn('The name of "CellbornFilter" has changed to '
|
||||
'"CellBornFilter". "CellbornFilter" will be '
|
||||
'removed in the future.')
|
||||
return CellBornFilter(*args, **kwargs)
|
||||
|
||||
|
||||
class CellInstanceFilter(Filter):
|
||||
"""Bins tally events based on which cell instance a particle is in.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue