Closed bryanwweber closed 6 years ago
Rather than using if...else statements to check keyword arguments, have methods like
if...else
class ChemKED(object): def __init__(self, ...): # initialize from dictionary @classmethod def from_file(cls, file): inp = load_file_to_dict() return cls(inp)
https://youtu.be/HTLu2DFOdTg?t=29m38s
Rather than using
if...else
statements to check keyword arguments, have methods likehttps://youtu.be/HTLu2DFOdTg?t=29m38s