Skip to content

Commit

Permalink
cell test: fix most of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Persaud committed Nov 15, 2024
1 parent 004bc2d commit 9c89af9
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 289 deletions.
5 changes: 4 additions & 1 deletion src/pymcnp/files/inp/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class CellKeyword(str, Enum):
``CellKeyword`` represents INP cell card option keywords.
``CellKeyword`` implements INP cell card option keywords as a
Python inner class. It enumerates MCNP keywords and provides
Python class. It enumerates MCNP keywords and provides
methods for casting strings to ``CellKeyword`` instances. It
represents the INP cell card option keyword syntax element, so
``Cell`` and ``CellOption`` depends on ``CellKeyword`` as an enum.
Expand Down Expand Up @@ -503,6 +503,9 @@ def to_arguments(self) -> dict:
'value': (self.value.to_mcnp() if hasattr(self.value, 'to_mcnp') else self.value),
}

def __repr__(self):
return f'<CellOption: {self.__class__.__name__} ({self.to_mcnp()})>'


class Importance(CellOption):
"""
Expand Down
Loading

0 comments on commit 9c89af9

Please sign in to comment.