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

Sample

represents the physical and chemical properties of particular sub sample.

SampleList

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 …

metadata: opendrift.models.openoil.adios.models.oil.metadata.SampleMetaData
cut_volume: opendrift.models.openoil.adios.models.common.measurement.VolumeFraction
physical_properties: opendrift.models.openoil.adios.models.oil.physical_properties.PhysicalProperties
environmental_behavior: opendrift.models.openoil.adios.models.oil.environmental_behavior.EnvironmentalBehavior
SARA: opendrift.models.openoil.adios.models.oil.sara.Sara
distillation_data: opendrift.models.openoil.adios.models.oil.distillation.Distillation
compounds: opendrift.models.openoil.adios.models.oil.compound.CompoundList
bulk_composition: opendrift.models.openoil.adios.models.oil.bulk_composition.BulkCompositionList
industry_properties: opendrift.models.openoil.adios.models.oil.industry_property.IndustryPropertyList
headspace_analysis: opendrift.models.openoil.adios.models.oil.compound.CompoundList
CCME: opendrift.models.openoil.adios.models.oil.ccme.CCME
ESTS_hydrocarbon_fractions: opendrift.models.openoil.adios.models.oil.ests_fractions.ESTSFractions
miscellaneous: opendrift.models.openoil.adios.models.oil.compound.CompoundList
extra_data: dict
__post_init__()[source]
__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
validate()[source]