Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docs/source/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The following are entities in the `ODM2 Core Schema <http://odm2.github.io/ODM2/

.. autosummary::

odm2api.ODM2.models.Actions
odm2api.ODM2.models.DataSets
odm2api.ODM2.models.FeatureActions
odm2api.ODM2.models.Methods
odm2api.ODM2.models.Organizations
odm2api.ODM2.models.People
odm2api.ODM2.models.ProcessingLevels
odm2api.ODM2.models.RelatedActions
odm2api.ODM2.models.Results
odm2api.ODM2.models.SamplingFeatures
odm2api.ODM2.models.TaxonomicClassifiers
odm2api.ODM2.models.Units
odm2api.ODM2.models.Variables
odm2api.models.Actions
odm2api.models.DataSets
odm2api.models.FeatureActions
odm2api.models.Methods
odm2api.models.Organizations
odm2api.models.People
odm2api.models.ProcessingLevels
odm2api.models.RelatedActions
odm2api.models.Results
odm2api.models.SamplingFeatures
odm2api.models.TaxonomicClassifiers
odm2api.models.Units
odm2api.models.Variables
8 changes: 4 additions & 4 deletions docs/source/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ This part of the documentation covers all the interfaces of ODM2PythonAPI.
:mod:`Read Services`
---------------------

.. automodule:: odm2api.ODM2.services.readService
.. automodule:: odm2api.services.readService
:members:
:undoc-members:
:show-inheritance:

:mod:`Create Services`
-----------------------

.. automodule:: odm2api.ODM2.services.createService
.. automodule:: odm2api.services.createService
:members:
:undoc-members:
:show-inheritance:

:mod:`Delete Services`
-----------------------

.. automodule:: odm2api.ODM2.services.deleteService
.. automodule:: odm2api.services.deleteService
:members:
:undoc-members:
:show-inheritance:

:mod:`Update Services`
-----------------------

.. automodule:: odm2api.ODM2.services.updateService
.. automodule:: odm2api.services.updateService
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/source/odm2models.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ODM2 Models
===========

.. automodule:: odm2api.ODM2.models
.. automodule:: odm2api.models
:members:
:undoc-members:
:show-inheritance:
21 changes: 11 additions & 10 deletions odm2api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class DataLoggerFiles(Base):


class EquipmentModels(Base):
ModelID = Column('modelid', Integer, primary_key=True, nullable=False)
ModelID = Column('equipmentmodelid', Integer, primary_key=True, nullable=False)
ModelManufacturerID = Column('modelmanufacturerid', Integer,
ForeignKey(Organizations.OrganizationID), nullable=False)
ModelPartNumber = Column('modelpartnumber', String(50))
Expand Down Expand Up @@ -537,14 +537,15 @@ class Equipment(Base):
EquipmentCode = Column('equipmentcode', String(50), nullable=False)
EquipmentName = Column('equipmentname', String(255), nullable=False)
EquipmentTypeCV = Column('equipmenttypecv', ForeignKey(CVEquipmentType.Name), nullable=False, index=True)
ModelID = Column('modelid', ForeignKey(EquipmentModels.ModelID), nullable=False)
EquipmentSerialNumber = Column('equipmentseriealnumber', String(50), nullable=False)
ModelID = Column('equipmentmodelid', ForeignKey(EquipmentModels.ModelID), nullable=False)
EquipmentSerialNumber = Column('equipmentserialnumber', String(50), nullable=False)
EquipmentInventoryNumber = Column('equipmentinventorynumber', String(50))
EquipmentOwnerID = Column('equipmentownerid', ForeignKey(People.PersonID), nullable=False)
EquipmentVendorID = Column('equipmentvendorid', ForeignKey(Organizations.OrganizationID), nullable=False)
EquipmentPurchaseDate = Column('equipmentpurchasedate', DateTime, nullable=False)
EquipmentPurchaseOrderNumber = Column('equipmentpurchaseordernumber', String(50))
EquipmentDescription = Column('equipmentdescription', String(500))
EquipmentDocumentationLink = Column('equipmentdocumentationlink', String(255))

PersonObj = relationship(People)
OrganizationObj = relationship(Organizations)
Expand Down Expand Up @@ -580,7 +581,7 @@ class EquipmentUsed(Base):

class MaintenanceActions(Base):
ActionID = Column('actionid', Integer, ForeignKey(Actions.ActionID), primary_key=True, nullable=False)
IsFactoryService = Column('isfactoryservce', Boolean, nullable=False)
IsFactoryService = Column('isfactoryservice', Boolean, nullable=False)
MaintenanceCode = Column('maintenancecode', String(50))
MantenanceReason = Column('maintenancereason', String(50))

Expand Down Expand Up @@ -836,7 +837,7 @@ class ActionAnnotations(Base):

class EquipmentAnnotations(Base):
BridgeID = Column('bridgeid', Integer, primary_key=True, nullable=False)
EquipmentID = Column('valueid', BigIntegerType, ForeignKey(Equipment.EquipmentID), nullable=False)
EquipmentID = Column('equipmentid', BigIntegerType, ForeignKey(Equipment.EquipmentID), nullable=False)
AnnotationID = Column('annotationid', ForeignKey(Annotations.AnnotationID), nullable=False)

AnnotationObj = relationship(Annotations)
Expand Down Expand Up @@ -906,7 +907,7 @@ class ReferenceMaterials(Base):
nullable=False,
index=True
)
ReferenceMaterialOrganizationID = Column('referencematerialoranizationid',
ReferenceMaterialOrganizationID = Column('referencematerialorganizationid',
ForeignKey(Organizations.OrganizationID), nullable=False)
ReferenceMaterialCode = Column('referencematerialcode', String(50), nullable=False)
ReferenceMaterialLotCode = Column('referencemateriallotcode', String(255))
Expand Down Expand Up @@ -951,7 +952,7 @@ class ReferenceMaterialValues(Base):

class ResultNormalizationValues(Base):
ResultID = Column(u'resultid', ForeignKey(Results.ResultID), primary_key=True)
ReferenceMaterialValueID = Column(u'referencematerialvalueid',
ReferenceMaterialValueID = Column(u'normalizedbyreferencematerialvalueid',
ForeignKey(ReferenceMaterialValues.ReferenceMaterialValueID),
nullable=False)

Expand Down Expand Up @@ -1068,8 +1069,8 @@ class CitationExternalIdentifiers(Base):
ExternalIdentifierSystemID = Column('externalidentifiersystemid',
ForeignKey(ExternalIdentifierSystems.ExternalIdentifierSystemID),
nullable=False)
CitationExternalIdentifier = Column('citationexternaldentifier', String(255), nullable=False)
CitationExternalIdentifierURI = Column('citationexternaldentifieruri', String(255))
CitationExternalIdentifier = Column('citationexternalidentifier', String(255), nullable=False)
CitationExternalIdentifierURI = Column('citationexternalidentifieruri', String(255))

CitationObj = relationship(Citations)
ExternalIdentifierSystemObj = relationship(ExternalIdentifierSystems)
Expand Down Expand Up @@ -1678,7 +1679,7 @@ class SpectraResultValues(Base):
ValueDateTime = Column('valuedatetime', DateTimeType, nullable=False)
ValueDateTimeUTCOffset = Column('valuedatetimeutcoffset', Integer, nullable=False)
ExcitationWavelength = Column('excitationwavelength', Float(53), nullable=False)
EmissionWavelength = Column('emmistionwavelength', Float(53), nullable=False)
EmissionWavelength = Column('emissionwavelength', Float(53), nullable=False)
WavelengthUnitsID = Column('wavelengthunitsid', ForeignKey(Units.UnitsID), nullable=False)
CensorCodeCV = Column('censorcodecv', ForeignKey(CVCensorCode.Name), nullable=False, index=True)
QualityCodeCV = Column('qualitycodecv', ForeignKey(CVQualityCode.Name), nullable=False, index=True)
Expand Down