def from_epw_file_sun_up_hours(cls, epw_file, sun_up_hours, north=0,
                                   is_leap_year=False):
        """Create sun matrix from an epw file.

        NOTE: Only the location from epw file will be used for creating analemma. For
            climate-based sun materix see SunMatrix class.

        Args:
            epw_file: Full path to an epw file.
            sun_up_hours: A list of hours of the year to be included in analemma.
            north: North angle from Y direction (default: 0).
            is_leap_year: A boolean to indicate if hours are for a leap year
                (default: False).
        """
        return cls.from_location_sun_up_hours(EPW(epw_file).location, sun_up_hours,
                                              north, is_leap_year)