Skip to content

Commit

Permalink
feat: change CHO variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Byung committed Nov 16, 2022
1 parent 0225a4f commit 44fb0f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/daidepp/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,19 +352,19 @@ def __str__(self):

@dataclass
class CHO:
min_choice: int
max_choice: int
minimum: int
maximum: int
arrangements: List[ARRANGEMENT]

def __init__(self, start_year, end_year, *arrangements):
self.min_choice = start_year
self.max_choice = end_year
def __init__(self, minimum, maximum, *arrangements):
self.minimum = minimum
self.maximum = maximum
self.arrangements = arrangements

def __str__(self):
arr_str = ["( " + str(arr) + " )" for arr in self.arrangements]

return f"CHO ( {self.min_choice} {self.max_choice} ) " + " ".join(arr_str)
return f"CHO ( {self.minimum} {self.maximum} ) " + " ".join(arr_str)


@dataclass
Expand Down

0 comments on commit 44fb0f8

Please sign in to comment.