Skip to content

Commit

Permalink
Abstract sim output initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
sbradnam committed Nov 5, 2024
1 parent 3c87d60 commit fcd1f5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jade/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,10 @@ def parse_output_data(
tally_comments = sim_output.output.tally_comments
return sim_output, tally_numbers, tally_comments

class AbstractSimOutput(abc.ABC):
pass

class MCNPSimOutput:
class MCNPSimOutput(AbstractSimOutput):
def __init__(
self,
mctal_file: str | os.PathLike,
Expand Down Expand Up @@ -1255,7 +1257,7 @@ def __init__(
self.tally_comments.append("")


class OpenMCSimOutput:
class OpenMCSimOutput(AbstractSimOutput):
def __init__(self, output_path: str | os.PathLike) -> None:
"""Class representing all outputs coming from OpenMC run
Expand Down

0 comments on commit fcd1f5e

Please sign in to comment.