opendrift.models.openoil.adios.models.oil.industry_property

dataclass to store the industry properties

These are tricky, as they can be any weird unit

Module Contents

Classes

IndustryProperty

This handles the various odd industry properties.

IndustryPropertyList

just like a list, but with the ability to turn it into JSON

class opendrift.models.openoil.adios.models.oil.industry_property.IndustryProperty[source]

This handles the various odd industry properties.

For example:

  • Total Acid Number

  • Reid Vapor Pressure

  • Aniline Point

  • Cetane Index

  • Cloud Point

  • Smoke Point

  • Freeze Point

name: str = ''
method: str = ''
measurement: opendrift.models.openoil.adios.models.common.measurement.AnyUnit
comment: str = ''
class opendrift.models.openoil.adios.models.oil.industry_property.IndustryPropertyList[source]

Bases: opendrift.models.openoil.adios.models.common.utilities.JSON_List

just like a list, but with the ability to turn it into JSON

A regular list can only be converted to JSON if it has JSON-able objects in it.

Note: must be subclassed, and the item_type attribute set

Initialize self. See help(type(self)) for accurate signature.

item_type