Main
cognite.neat._issues.warnings
#
All warnings raised by the neat package are defined here. Note this module is called 'warnings' which conflicts with the built-in Python warnings module. However, it is expected to always be used in an absolute import, and should thus not cause a naming conflict.
DefaultWarning
dataclass
#
Bases: NeatWarning
{category}: {warning}
Source code in cognite/neat/_issues/_base.py
FileItemNotSupportedWarning
dataclass
#
Bases: NeatWarning
The item {item} in {filepath} is not supported. The item will be skipped
Source code in cognite/neat/_issues/warnings/_external.py
FileMissingRequiredFieldWarning
dataclass
#
Bases: NeatWarning
Missing required {field_name} in {filepath}: {field}. The file will be skipped
Source code in cognite/neat/_issues/warnings/_external.py
FileReadWarning
dataclass
#
FileTypeUnexpectedWarning
dataclass
#
Bases: NeatWarning
Unexpected file type: {filepath}. Expected format: {expected_format}
Source code in cognite/neat/_issues/warnings/_external.py
NeatValueWarning
dataclass
#
NotSupportedWarning
dataclass
#
RegexViolationWarning
dataclass
#
Bases: NeatWarning
The value '{value}' of {identifier} does not match the {pattern_name} pattern '{pattern}'
Source code in cognite/neat/_issues/warnings/_general.py
BreakingModelingPrincipleWarning
dataclass
#
Bases: NeatWarning
, ABC
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
Source code in cognite/neat/_issues/warnings/_models.py
CDFNotSupportedWarning
dataclass
#
Bases: NeatWarning
, ABC
This is a base class for warnings for modeling issues that will likely lead to the CDF API rejecting the model.
Source code in cognite/neat/_issues/warnings/_models.py
NotSupportedHasDataFilterLimitWarning
dataclass
#
Bases: CDFNotSupportedWarning
The view {view_id} uses a hasData filter applied to {count} containers, which is more than the limit {limit}.
Source code in cognite/neat/_issues/warnings/_models.py
NotSupportedViewContainerLimitWarning
dataclass
#
Bases: CDFNotSupportedWarning
The view {view_id} maps, {count} containers, which is more than the limit {limit}.
Source code in cognite/neat/_issues/warnings/_models.py
PrincipleMatchingSpaceAndVersionWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
Source code in cognite/neat/_issues/warnings/_models.py
PrincipleOneModelOneSpaceWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
Source code in cognite/neat/_issues/warnings/_models.py
PrincipleSolutionBuildsOnEnterpriseWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
Source code in cognite/neat/_issues/warnings/_models.py
UndefinedViewWarning
dataclass
#
Bases: UserModelingWarning
Undefined view {value_type} has been referred as value type for property <{view_property}> of view {view_id}.
Source code in cognite/neat/_issues/warnings/_models.py
UserModelingWarning
dataclass
#
Bases: NeatWarning
, ABC
This is a generic warning for user modeling issues. These warnings will not cause the resulting model to be invalid, but will likely lead to suboptimal performance, unnecessary complexity, or other issues.
Source code in cognite/neat/_issues/warnings/_models.py
PropertyDefinitionDuplicatedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
Got multiple values for the {resource_type} {identifier}.{property_name} {values}.
Source code in cognite/neat/_issues/warnings/_properties.py
PropertyNotFoundWarning
dataclass
#
Bases: PropertyWarning
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} does not have a property {property_name} referred to by {referred_type} {referred_by} does not exist. This will be ignored.
Source code in cognite/neat/_issues/warnings/_properties.py
PropertyTypeNotSupportedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The {resource_type} with identifier {identifier} has a property {property_name} of unsupported type {property_type}. This will be ignored.
Source code in cognite/neat/_issues/warnings/_properties.py
PropertyValueTypeUndefinedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The {resource_type} with identifier {identifier} has a property {property_name} which has undefined value type. This may result in unexpected behavior when exporting rules.
Source code in cognite/neat/_issues/warnings/_properties.py
ResourceNeatWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Base class for resource warnings {resource_type} with identifier {identifier}
Source code in cognite/neat/_issues/warnings/_resources.py
ResourceNotFoundWarning
dataclass
#
Bases: ResourceNeatWarning
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} referred by {referred_type} {referred_by} does not exist. This will be ignored.
Source code in cognite/neat/_issues/warnings/_resources.py
ResourceRetrievalWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Failed to retrieve {resource_type} with identifiers {resources}. Continuing without these resources.
Source code in cognite/neat/_issues/warnings/_resources.py
ResourcesDuplicatedWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Duplicated {resource_type} with identifiers {resources} were found. {default_action}
Source code in cognite/neat/_issues/warnings/_resources.py
ResourceTypeNotSupportedWarning
dataclass
#
Bases: ResourceNeatWarning[T_Identifier]
The {resource_type} with identifier {identifier} is not supported. This will be ignored.