hec.rating.simple_rating
Exception class for SimpleRating objects
Provides common for definitions and code for TableRating and ExpressionRating classes,
both of which are represented in XML using the
@staticmethod
def
from_xml( xml_str: str, specification: Optional[hec.rating.RatingSpecification] = None) -> hec.rating.AbstractRating:
Creates a rating object from an XML instance
Arguments:
- xml_str (str): The XML instance to create the rating from
Raises:
- AbstractRatingException: if no subclass of AbstractRating has a registered from_xml()
- method that is compatible with the specified XML instance
Returns:
AbstractRating: The rating created from the XML instance
Inherited Members
- hec.rating.abstract_rating.AbstractRating
- effective_time
- active
- convert_units
- create_time
- default_data_units
- default_data_vertical_datum
- description
- has_elev_param
- make_datum_offsets
- make_reverse_datum_offsets
- make_reverse_unit_conversions
- make_unit_conversion
- make_unit_conversions
- office
- populate_xml_element
- rate
- rating_units
- reverse_rate
- specification
- specification_id
- template
- template_id
- to_xml
- transition_start_time
- vertical_datum_info
- vertical_datum_json
- vertical_datum_xml