@classmethod<EOL><INDENT>def from_ep_string(cls, ep_string, location):<DEDENT>
<EOL>ep_string = ep_string.strip()<EOL>if '<STR_LIT:\n>' in ep_string:<EOL><INDENT>ep_lines = ep_string.split('<STR_LIT:\n>')<EOL><DEDENT>else:<EOL><INDENT>ep_lines = ep_string.split('<STR_LIT:\r>')<EOL><DEDENT>lines = [l.split('<STR_LIT:!>')[<NUM_LIT:0>].strip().replace('<STR_LIT:U+002C>', '<STR_LIT>') for l in ep_lines]<EOL>assert len(lines) == <NUM_LIT> or len(lines) == <NUM_LIT>, "<STR_LIT>""<STR_LIT>""<STR_LIT>".format(<EOL>len(lines))<EOL>lines[-<NUM_LIT:1>] = lines[-<NUM_LIT:1>].split('<STR_LIT:;>')[<NUM_LIT:0>]<EOL>name = lines[<NUM_LIT:1>]<EOL>day_type = lines[<NUM_LIT:4>]<EOL>dry_bulb_condition = DryBulbCondition(<EOL>float(lines[<NUM_LIT:5>]), float(lines[<NUM_LIT:6>]), lines[<NUM_LIT:7>], lines[<NUM_LIT:8>])<EOL>h_type = lines[<NUM_LIT:9>]<EOL>h_val = <NUM_LIT:0> if lines[<NUM_LIT:10>] == '<STR_LIT>' else float(lines[<NUM_LIT:10>])<EOL>if h_type == '<STR_LIT>':<EOL><INDENT>h_val = float(lines[<NUM_LIT:12>])<EOL><DEDENT>elif h_type == '<STR_LIT>':<EOL><INDENT>h_val = float(lines[<NUM_LIT>])<EOL><DEDENT>humidity_condition = HumidityCondition(<EOL>h_type, h_val, float(lines[<NUM_LIT:15>]), lines[<NUM_LIT:11>])<EOL>wind_condition = WindCondition(<EOL>float(lines[<NUM_LIT:16>]), float(lines[<NUM_LIT>]), lines[<NUM_LIT>], lines[<NUM_LIT>])<EOL>sky_model = lines[<NUM_LIT>]<EOL>if sky_model == '<STR_LIT>':<EOL><INDENT>sky_condition = OriginalClearSkyCondition(<EOL>int(lines[<NUM_LIT:2>]), int(lines[<NUM_LIT:3>]), float(lines[<NUM_LIT>]), lines[<NUM_LIT:20>])<EOL><DEDENT>elif sky_model == '<STR_LIT>':<EOL><INDENT>sky_condition = RevisedClearSkyCondition(<EOL>int(lines[<NUM_LIT:2>]), int(lines[<NUM_LIT:3>]), float(lines[<NUM_LIT>]),<EOL>float(lines[<NUM_LIT>]), lines[<NUM_LIT:20>])<EOL><DEDENT>else:<EOL><INDENT>sky_condition = SkyCondition(<EOL>sky_model, int(lines[<NUM_LIT:2>]), int(lines[<NUM_LIT:3>]), lines[<NUM_LIT:20>])<EOL><DEDENT>if sky_model == '<STR_LIT>':<EOL><INDENT>sky_condition.beam_shced = lines[<NUM_LIT>]<EOL>sky_condition.diff_shced = lines[<NUM_LIT>]<EOL><DEDENT>return cls(name, day_type, location, dry_bulb_condition,<EOL>humidity_condition, wind_condition, sky_condition)<EOL>
Initalize from an EnergyPlus string of a SizingPeriod:DesignDay.

        args:
            ep_string: A full string representing a SizingPeriod:DesignDay.