def from_epw_file(cls, epw_file, hoys=None, 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.
            hoys: A list of hours of the year (default: range(8760)).
            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(EPW(epw_file).location, hoys, north, is_leap_year)