opendrift.models.openoil.adios.models.oil.sample
Main class that represents an oil record.
This maps to the JSON used in the DB
Having a Python class makes it easier to write importing, validating etc, code.
Module Contents
Classes
represents the physical and chemical properties of particular sub sample. |
|
just like a list, but with the ability to turn it into JSON |
- class opendrift.models.openoil.adios.models.oil.sample.Sample[source]
represents the physical and chemical properties of particular sub sample.
could be fresh oil, or weathered samples, or distillation cuts, or …
- physical_properties: opendrift.models.openoil.adios.models.oil.physical_properties.PhysicalProperties
- environmental_behavior: opendrift.models.openoil.adios.models.oil.environmental_behavior.EnvironmentalBehavior
- distillation_data: opendrift.models.openoil.adios.models.oil.distillation.Distillation
- industry_properties: opendrift.models.openoil.adios.models.oil.industry_property.IndustryPropertyList
- headspace_analysis: opendrift.models.openoil.adios.models.oil.compound.CompoundList
- ESTS_hydrocarbon_fractions: opendrift.models.openoil.adios.models.oil.ests_fractions.ESTSFractions
- extra_data: dict
- __repr__()
Return repr(self).
- class opendrift.models.openoil.adios.models.oil.sample.SampleList[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