maptekblastlogic.models package
Contains all the data models used in inputs/outputs
- class maptekblastlogic.models.BackfillingEntryActual(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_dip_depth_before=<maptekblastlogic.types.Unset object>, crew_water_length_before=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_before=<maptekblastlogic.types.Unset object>, crew_temperature_before=<maptekblastlogic.types.Unset object>, was_backfilled=<maptekblastlogic.types.Unset object>, crew_dip_depth_after=<maptekblastlogic.types.Unset object>, crew_water_length_after=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_after=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_dip_depth_after=<maptekblastlogic.types.Unset object>, supervisor_water_length_after=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length_after=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectMeasurements recorded from a backfilling activity.
- crew_start_time
When this backfilling activity started (UTC).
- Type:
- crew_end_time
When this backfilling activity was completed (UTC). Must be greater than or equal to ‘crewStartTime’.
- Type:
- crew_id
The unique identifier of the crew that performed this backfilling. Can be null if unknown.
- crew_dip_depth_before
Depth of the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_water_length_before
Depth of the water in the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_wet_sides_length_before
Length of the wet sides of the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_temperature_before
Temperature of the hole before backfilling according to the crew (Kelvin). Can be null if unknown.
- crew_dip_depth_after
Depth of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_water_length_after
Depth of the water in the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_wet_sides_length_after
Length of the wet sides of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_comment
Comments about the hole during the backfilling activity. Can be null. Maximum 200 characters.
- supervisor_id
The unique identifier of the supervisor responsible for supervising this backfilling activity. Can be null if unknown.
- supervisor_start_time
When the supervisor checked started (UTC). Required when ‘supervisorEndTime’ has a value.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_end_time
When the supervisor checked finished (UTC). Required when ‘supervisorStartTime’ has a value.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_dip_depth_after
Depth of the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
- supervisor_water_length_after
Depth of water in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
- supervisor_wet_sides_length_after
Length of the wet sides in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
- class maptekblastlogic.models.BackfillingEntryModel(hole_id, plan, backfilling_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a backfilling activity on a hole.
- Parameters:
hole_id (int)
plan (BackfillingEntryPlan)
actual (BackfillingEntryActual | None | Unset)
- plan
Instructions on how a backfilling activity should be performed.
- Type:
- backfilling_entry_id
The unique identifier of this backfilling entry. Ignored when creating. Cannot be edited.
- etag
The backfilling entry’s current ETag. Required when editing in bulk.
- created_by
Username of the person who created this backfilling entry. Ignored when creating and editing.
- last_modified_by
Username of the person who last updated this backfilling entry. Ignored when creating and editing.
- last_modified_time
When this backfilling entry was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- created_time
When this backfilling entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.
- Type:
Union[None, Unset, datetime.datetime]
- cancelled_time
When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- actual
Measurements recorded from the backfilling activity. ‘cancelledTime’ must be null when ‘actual’ is not null.
- Type:
Union[‘BackfillingEntryActual’, None, Unset]
- plan: BackfillingEntryPlan
- actual: BackfillingEntryActual | None | Unset
- class maptekblastlogic.models.BackfillingEntryPlan(target_depth=<maptekblastlogic.types.Unset object>, crew_check_required=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectInstructions on how a backfilling activity should be performed.
- Parameters:
- target_depth
The desired depth of the hole after backfilling (Meters). Cannot be negative.
- crew_check_required
Whether or not the hole requires re-dipping after backfilling by the crew.
- supervisor_check_required
Whether or not the hole requires re-dipping after backfilling by the supervisor.
- class maptekblastlogic.models.BlastModel(blast_name, blast_id=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, fired_time=<maptekblastlogic.types.Unset object>, abandoned_time=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA collection of holes designed to be detonated together.
- Parameters:
- status
- Type:
Union[Unset, BlastStatus]
- fired_time
When this blast was fired (UTC). Null indicates the blast has not been fired.
- Type:
Union[None, Unset, datetime.datetime]
- abandoned_time
When this blast was abandoned (UTC). Null indicates the blast has not been abandoned.
- Type:
Union[None, Unset, datetime.datetime]
- status: Unset | BlastStatus
- class maptekblastlogic.models.BlastStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
-
- ABANDONED = 'Abandoned'
- ACTIVE = 'Active'
- FIRED = 'Fired'
- SUSPENDED = 'Suspended'
- class maptekblastlogic.models.ChargePlanDeckModel(product_id=<maptekblastlogic.types.Unset object>, order=<maptekblastlogic.types.Unset object>, length=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of how a deck is planned to be loaded.
- Parameters:
- order
The order this deck sits in this hole. Decks are numbered from the bottom up, with the bottom deck having order ‘1’.
- length
The length of this deck measured along the length of the hole (Meters).
- mass
For products where the mass is known, the total mass of the deck (Kilograms).
- quantity
For packaged products, the number of packages or units used in this deck.
- class maptekblastlogic.models.ChargePlanModel(hole_id=<maptekblastlogic.types.Unset object>, decks=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectThe current plan of how a hole should be charged.
- Parameters:
decks (List[ChargePlanDeckModel] | None | Unset)
- decks
The decks planned to be loaded into the hole.
- Type:
Union[List[‘ChargePlanDeckModel’], None, Unset]
- decks: List[ChargePlanDeckModel] | None | Unset
- class maptekblastlogic.models.CrewModel(crew_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_active=<maptekblastlogic.types.Unset object>, is_dipping_crew=<maptekblastlogic.types.Unset object>, is_backfilling=<maptekblastlogic.types.Unset object>, is_charging_crew=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA crew and their responsibilities.
- Parameters:
- created_by
Username of the person who created this crew. Ignored when creating and editing.
- created_time
When this crew was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this crew. Ignored when creating and editing.
- last_modified_time
When this crew was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- class maptekblastlogic.models.DensityTableRow(depth=<maptekblastlogic.types.Unset object>, average_density=<maptekblastlogic.types.Unset object>)[source]
Bases:
object
- class maptekblastlogic.models.DippingEntryActualModel(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_depth=<maptekblastlogic.types.Unset object>, crew_water_length=<maptekblastlogic.types.Unset object>, crew_wet_sides_length=<maptekblastlogic.types.Unset object>, crew_temperature=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_depth=<maptekblastlogic.types.Unset object>, supervisor_water_length=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectMeasurements recorded from dipping holes.
- crew_start_time
When the crew stared dipping (UTC).
- Type:
- crew_end_time
When the crew completed dipping (UTC). Must be greater than or equal to ‘crewStartTime’.
- Type:
- crew_id
Id of the crew that performed the dipping activity. Can be null if unknown.
- crew_depth
Depth of the hole according to the crew (Meters). Can be null if unknown.
- crew_water_length
Depth of the water in the hole according to the crew (Meters). Can be null if unknown.
- crew_wet_sides_length
Length of the wet sides in the hole according to the crew (Meters). Can be null if unknown.
- crew_temperature
Temperature of the hole according to the crew (Kelvin). Can be null if unknown.
- crew_comment
Comments about the hole during the dipping activity. Can be null.
- supervisor_id
Id of the person responsible for supervising this dipping activity. Can be null if unknown.
- supervisor_start_time
When the supervisor check started (UTC). Cannot be null if ‘supervisorEndTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_end_time
When the supervisor check finished (UTC). Cannot be null if ‘supervisorStartTime’ is not null. If not null, must be greater than or equal to ‘supervisorStartTime’.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_depth
Depth of the hole according to the supervisor (Meters). Can be null if unknown.
- supervisor_water_length
Length of the wet sides of the hole according to the supervisor (Meters). Can be null if unknown.
- supervisor_wet_sides_length
Length of the wet sides in the hole according to the supervisor (Meters). Can be null if unknown.
- class maptekblastlogic.models.DippingEntryModel(hole_id, plan, dipping_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a dipping activity on a hole.
- Parameters:
hole_id (int)
plan (DippingEntryPlanModel)
actual (DippingEntryActualModel | None | Unset)
- plan
Instructions on how to dip the holes.
- Type:
- dipping_entry_id
The unique identifier of this dipping entry. Ignored when creating and editing. Cannot be edited.
- etag
The dipping entry’s current ETag. Required when editing in bulk.
- created_by
Username of the person who created this dipping entry. Ignored when creating and editing.
- last_modified_by
Username of the person who last updated this dipping entry. Ignored when creating and editing.
- last_modified_time
When this dipping entry was last updated (UTC). Ignored when creating and editing.
- Type:
Union[Unset, datetime.datetime]
- created_time
When this dipping entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.
- Type:
Union[None, Unset, datetime.datetime]
- cancelled_time
When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- actual
Measurements recorded from dipping the holes. ‘cancelledTime’ must be null when ‘actual’ is not null.
- Type:
Union[‘DippingEntryActualModel’, None, Unset]
- plan: DippingEntryPlanModel
- actual: DippingEntryActualModel | None | Unset
- class maptekblastlogic.models.DippingEntryPlanModel(last_known_depth=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectInstructions on how to dip the holes.
- last_known_depth
The last known depth of the hole when this entry was created (Meters). Can be null if unknown.
- supervisor_check_required
Whether the supervisor is required to validate the dip measurements.
- class maptekblastlogic.models.ErrorModel(title=<maptekblastlogic.types.Unset object>, details=<maptekblastlogic.types.Unset object>, errors=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA structure of error messages given when a request could not be fulfilled.
- Parameters:
- class maptekblastlogic.models.HoleGeometry(collar=<maptekblastlogic.types.Unset object>, angle=<maptekblastlogic.types.Unset object>, bearing=<maptekblastlogic.types.Unset object>, depth=<maptekblastlogic.types.Unset object>, diameter=<maptekblastlogic.types.Unset object>)[source]
Bases:
object- Parameters:
- angle
The hole angle from vertical towards the direction of the bearing (Degrees).
- bearing
The compass bearing the hole is pointing. Clockwise from north (Degrees).
- class maptekblastlogic.models.HoleModel(hole_id=<maptekblastlogic.types.Unset object>, blast_id=<maptekblastlogic.types.Unset object>, hole_name=<maptekblastlogic.types.Unset object>, row=<maptekblastlogic.types.Unset object>, echelon=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, design=<maptekblastlogic.types.Unset object>, last_known=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a hole.
- Parameters:
- last_known
The hole geometry according to most recent data.
- Type:
Union[‘HoleGeometry’, None, Unset]
- design: HoleGeometry | None | Unset
- last_known: HoleGeometry | None | Unset
- class maptekblastlogic.models.LoadedDeckModel(start_time, end_time, product_id, top_depth, bottom_depth, loaded_deck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, hole_id=<maptekblastlogic.types.Unset object>, is_deleted=<maptekblastlogic.types.Unset object>, shot_firer_id=<maptekblastlogic.types.Unset object>, crew_id=<maptekblastlogic.types.Unset object>, operator_id=<maptekblastlogic.types.Unset object>, loading_truck_id=<maptekblastlogic.types.Unset object>, comment=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDescribes the loading of an individual deck. This is raw data collected from the field that has not been validated and reconciled in BlastLogic Desktop. As such, decks may overlap with each other. This data should not be relied upon as the current state of the hole.
- Attributes:
start_time (datetime.datetime): When charging this deck began (UTC). end_time (datetime.datetime): When charging this deck completed (UTC). Must be greater than or equal to
‘startTime’.
product_id (int): The ID of the product used in this deck top_depth (float): The depth of the top of this deck (Metres). Can be null if unknown. bottom_depth (float): The depth of the bottom of this deck (Metres). Can be null if unknown. loaded_deck_id (Union[None, Unset, int]): The unique identifier if this loaded deck. Ignored when creating.
Cannot be edited.
etag (Union[None, Unset, str]): The loaded deck’s current ETag. Ignored when creating and editing. created_by (Union[None, Unset, str]): Username of the person who created this loaded deck. Ignored when creating
and editing.
- created_time (Union[Unset, datetime.datetime]): When this loaded deck was created (UTC). Ignored when creating
and editing.
- last_modified_by (Union[None, Unset, str]): Username of the person who last updated this loaded deck. Ignored
when creating and editing.
- last_modified_time (Union[Unset, datetime.datetime]): When this loaded deck was last updated (UTC). Ignored when
creating and editing.
hole_id (Union[None, Unset, int]): The ID of the hole this loaded deck relates to. Cannot be edited. is_deleted (Union[Unset, bool]): Whether this loaded deck is deleted. Deleted loaded decks are considered
erroneous and all details are ignored.
- shot_firer_id (Union[None, Unset, int]): The ID of the person responsible for firing the blast. Can be null if
unknown.
crew_id (Union[None, Unset, int]): The ID of the crew that loaded this deck. Can be null if unknown. operator_id (Union[None, Unset, int]): The ID of the equipment operator. Can be null if unknown. loading_truck_id (Union[None, Unset, int]): The ID of the loading truck used to load this deck. Can be null if
unknown.
comment (Union[None, Unset, str]): Comments from the crew or operator about this loaded deck. mass (Union[None, Unset, float]): The mass of the product that was loaded into the hole (Kilograms). Cannot be
negative. Can be null if unknown.
- quantity (Union[None, Unset, int]): The number of product loaded into the hole. Cannot be negative. Can be null
if unknown.
- class maptekblastlogic.models.LoadingTruckModel(loading_truck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, active=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA truck used to load blast products into holes.
- Parameters:
- etag
The loading truck’s current ETag. Ignored when creating and editing.
- created_by
Username of the person who created this loading truck. Ignored when creating and editing.
- created_time
When this loading truck was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this loading truck. Ignored when creating and editing.
- last_modified_time
When this loading truck was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- class maptekblastlogic.models.PersonModel(personnel_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_backfilling_supervisor=<maptekblastlogic.types.Unset object>, is_dipping_supervisor=<maptekblastlogic.types.Unset object>, is_loading_truck_operator=<maptekblastlogic.types.Unset object>, is_shot_firer=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA person and their responsibilities.
- Parameters:
- created_by
Username of the person who created this person. Ignored when creating and editing.
- created_time
When this person was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this person. Ignored when creating and editing.
- last_modified_time
When this person was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- is_backfilling_supervisor
Whether this person can supervise backfilling activities.
- is_dipping_supervisor
Whether this person can supervise dipping activities.
- class maptekblastlogic.models.Point(x=<maptekblastlogic.types.Unset object>, y=<maptekblastlogic.types.Unset object>, z=<maptekblastlogic.types.Unset object>)[source]
Bases:
object
- class maptekblastlogic.models.ProductModel(product_id=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, integration_id=<maptekblastlogic.types.Unset object>, type=<maptekblastlogic.types.Unset object>, open_cup_density=<maptekblastlogic.types.Unset object>, energy_density=<maptekblastlogic.types.Unset object>, density_table=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA consumable product used to blast holes.
- Parameters:
- integration_id
The identifier to help match this product in another system. Can be null.
- open_cup_density
The open cup density of this product (kg/m3). Can be null.
- energy_density
The energy released when this product is detonated (J/kg). Can be null.
- density_table
The density of this product at specific depths. Can be null.
- Type:
Union[List[‘DensityTableRow’], None, Unset]
- density_table: List[DensityTableRow] | None | Unset
- class maptekblastlogic.models.SiteModel(site_code, name, is_active=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a site.
Submodules
maptekblastlogic.models.backfilling_entry_actual module
- class maptekblastlogic.models.backfilling_entry_actual.BackfillingEntryActual(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_dip_depth_before=<maptekblastlogic.types.Unset object>, crew_water_length_before=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_before=<maptekblastlogic.types.Unset object>, crew_temperature_before=<maptekblastlogic.types.Unset object>, was_backfilled=<maptekblastlogic.types.Unset object>, crew_dip_depth_after=<maptekblastlogic.types.Unset object>, crew_water_length_after=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_after=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_dip_depth_after=<maptekblastlogic.types.Unset object>, supervisor_water_length_after=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length_after=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectMeasurements recorded from a backfilling activity.
- crew_start_time
When this backfilling activity started (UTC).
- Type:
- crew_end_time
When this backfilling activity was completed (UTC). Must be greater than or equal to ‘crewStartTime’.
- Type:
- crew_id
The unique identifier of the crew that performed this backfilling. Can be null if unknown.
- crew_dip_depth_before
Depth of the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_water_length_before
Depth of the water in the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_wet_sides_length_before
Length of the wet sides of the hole before backfilling according to the crew (Meters). Can be null if unknown.
- crew_temperature_before
Temperature of the hole before backfilling according to the crew (Kelvin). Can be null if unknown.
- crew_dip_depth_after
Depth of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_water_length_after
Depth of the water in the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_wet_sides_length_after
Length of the wet sides of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.
- crew_comment
Comments about the hole during the backfilling activity. Can be null. Maximum 200 characters.
- supervisor_id
The unique identifier of the supervisor responsible for supervising this backfilling activity. Can be null if unknown.
- supervisor_start_time
When the supervisor checked started (UTC). Required when ‘supervisorEndTime’ has a value.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_end_time
When the supervisor checked finished (UTC). Required when ‘supervisorStartTime’ has a value.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_dip_depth_after
Depth of the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
- supervisor_water_length_after
Depth of water in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
- supervisor_wet_sides_length_after
Length of the wet sides in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.
maptekblastlogic.models.backfilling_entry_model module
- class maptekblastlogic.models.backfilling_entry_model.BackfillingEntryModel(hole_id, plan, backfilling_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a backfilling activity on a hole.
- Parameters:
hole_id (int)
plan (BackfillingEntryPlan)
actual (BackfillingEntryActual | None | Unset)
- plan
Instructions on how a backfilling activity should be performed.
- Type:
- backfilling_entry_id
The unique identifier of this backfilling entry. Ignored when creating. Cannot be edited.
- etag
The backfilling entry’s current ETag. Required when editing in bulk.
- created_by
Username of the person who created this backfilling entry. Ignored when creating and editing.
- last_modified_by
Username of the person who last updated this backfilling entry. Ignored when creating and editing.
- last_modified_time
When this backfilling entry was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- created_time
When this backfilling entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.
- Type:
Union[None, Unset, datetime.datetime]
- cancelled_time
When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- actual
Measurements recorded from the backfilling activity. ‘cancelledTime’ must be null when ‘actual’ is not null.
- Type:
Union[‘BackfillingEntryActual’, None, Unset]
- plan: BackfillingEntryPlan
- actual: BackfillingEntryActual | None | Unset
maptekblastlogic.models.backfilling_entry_plan module
- class maptekblastlogic.models.backfilling_entry_plan.BackfillingEntryPlan(target_depth=<maptekblastlogic.types.Unset object>, crew_check_required=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectInstructions on how a backfilling activity should be performed.
- Parameters:
- target_depth
The desired depth of the hole after backfilling (Meters). Cannot be negative.
- crew_check_required
Whether or not the hole requires re-dipping after backfilling by the crew.
- supervisor_check_required
Whether or not the hole requires re-dipping after backfilling by the supervisor.
maptekblastlogic.models.blast_model module
- class maptekblastlogic.models.blast_model.BlastModel(blast_name, blast_id=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, fired_time=<maptekblastlogic.types.Unset object>, abandoned_time=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA collection of holes designed to be detonated together.
- Parameters:
- status
- Type:
Union[Unset, BlastStatus]
- fired_time
When this blast was fired (UTC). Null indicates the blast has not been fired.
- Type:
Union[None, Unset, datetime.datetime]
- abandoned_time
When this blast was abandoned (UTC). Null indicates the blast has not been abandoned.
- Type:
Union[None, Unset, datetime.datetime]
- status: Unset | BlastStatus
maptekblastlogic.models.blast_status module
maptekblastlogic.models.charge_plan_deck_model module
- class maptekblastlogic.models.charge_plan_deck_model.ChargePlanDeckModel(product_id=<maptekblastlogic.types.Unset object>, order=<maptekblastlogic.types.Unset object>, length=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of how a deck is planned to be loaded.
- Parameters:
- order
The order this deck sits in this hole. Decks are numbered from the bottom up, with the bottom deck having order ‘1’.
- length
The length of this deck measured along the length of the hole (Meters).
- mass
For products where the mass is known, the total mass of the deck (Kilograms).
- quantity
For packaged products, the number of packages or units used in this deck.
maptekblastlogic.models.charge_plan_model module
- class maptekblastlogic.models.charge_plan_model.ChargePlanModel(hole_id=<maptekblastlogic.types.Unset object>, decks=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectThe current plan of how a hole should be charged.
- Parameters:
decks (List[ChargePlanDeckModel] | None | Unset)
- decks
The decks planned to be loaded into the hole.
- Type:
Union[List[‘ChargePlanDeckModel’], None, Unset]
- decks: List[ChargePlanDeckModel] | None | Unset
maptekblastlogic.models.crew_model module
- class maptekblastlogic.models.crew_model.CrewModel(crew_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_active=<maptekblastlogic.types.Unset object>, is_dipping_crew=<maptekblastlogic.types.Unset object>, is_backfilling=<maptekblastlogic.types.Unset object>, is_charging_crew=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA crew and their responsibilities.
- Parameters:
- created_by
Username of the person who created this crew. Ignored when creating and editing.
- created_time
When this crew was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this crew. Ignored when creating and editing.
- last_modified_time
When this crew was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
maptekblastlogic.models.density_table_row module
maptekblastlogic.models.dipping_entry_actual_model module
- class maptekblastlogic.models.dipping_entry_actual_model.DippingEntryActualModel(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_depth=<maptekblastlogic.types.Unset object>, crew_water_length=<maptekblastlogic.types.Unset object>, crew_wet_sides_length=<maptekblastlogic.types.Unset object>, crew_temperature=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_depth=<maptekblastlogic.types.Unset object>, supervisor_water_length=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectMeasurements recorded from dipping holes.
- crew_start_time
When the crew stared dipping (UTC).
- Type:
- crew_end_time
When the crew completed dipping (UTC). Must be greater than or equal to ‘crewStartTime’.
- Type:
- crew_id
Id of the crew that performed the dipping activity. Can be null if unknown.
- crew_depth
Depth of the hole according to the crew (Meters). Can be null if unknown.
- crew_water_length
Depth of the water in the hole according to the crew (Meters). Can be null if unknown.
- crew_wet_sides_length
Length of the wet sides in the hole according to the crew (Meters). Can be null if unknown.
- crew_temperature
Temperature of the hole according to the crew (Kelvin). Can be null if unknown.
- crew_comment
Comments about the hole during the dipping activity. Can be null.
- supervisor_id
Id of the person responsible for supervising this dipping activity. Can be null if unknown.
- supervisor_start_time
When the supervisor check started (UTC). Cannot be null if ‘supervisorEndTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_end_time
When the supervisor check finished (UTC). Cannot be null if ‘supervisorStartTime’ is not null. If not null, must be greater than or equal to ‘supervisorStartTime’.
- Type:
Union[None, Unset, datetime.datetime]
- supervisor_depth
Depth of the hole according to the supervisor (Meters). Can be null if unknown.
- supervisor_water_length
Length of the wet sides of the hole according to the supervisor (Meters). Can be null if unknown.
- supervisor_wet_sides_length
Length of the wet sides in the hole according to the supervisor (Meters). Can be null if unknown.
maptekblastlogic.models.dipping_entry_model module
- class maptekblastlogic.models.dipping_entry_model.DippingEntryModel(hole_id, plan, dipping_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a dipping activity on a hole.
- Parameters:
hole_id (int)
plan (DippingEntryPlanModel)
actual (DippingEntryActualModel | None | Unset)
- plan
Instructions on how to dip the holes.
- Type:
- dipping_entry_id
The unique identifier of this dipping entry. Ignored when creating and editing. Cannot be edited.
- etag
The dipping entry’s current ETag. Required when editing in bulk.
- created_by
Username of the person who created this dipping entry. Ignored when creating and editing.
- last_modified_by
Username of the person who last updated this dipping entry. Ignored when creating and editing.
- last_modified_time
When this dipping entry was last updated (UTC). Ignored when creating and editing.
- Type:
Union[Unset, datetime.datetime]
- created_time
When this dipping entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.
- Type:
Union[None, Unset, datetime.datetime]
- cancelled_time
When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.
- Type:
Union[None, Unset, datetime.datetime]
- actual
Measurements recorded from dipping the holes. ‘cancelledTime’ must be null when ‘actual’ is not null.
- Type:
Union[‘DippingEntryActualModel’, None, Unset]
- plan: DippingEntryPlanModel
- actual: DippingEntryActualModel | None | Unset
maptekblastlogic.models.dipping_entry_plan_model module
- class maptekblastlogic.models.dipping_entry_plan_model.DippingEntryPlanModel(last_known_depth=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectInstructions on how to dip the holes.
- last_known_depth
The last known depth of the hole when this entry was created (Meters). Can be null if unknown.
- supervisor_check_required
Whether the supervisor is required to validate the dip measurements.
maptekblastlogic.models.error_model module
- class maptekblastlogic.models.error_model.ErrorModel(title=<maptekblastlogic.types.Unset object>, details=<maptekblastlogic.types.Unset object>, errors=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA structure of error messages given when a request could not be fulfilled.
- Parameters:
maptekblastlogic.models.hole_geometry module
- class maptekblastlogic.models.hole_geometry.HoleGeometry(collar=<maptekblastlogic.types.Unset object>, angle=<maptekblastlogic.types.Unset object>, bearing=<maptekblastlogic.types.Unset object>, depth=<maptekblastlogic.types.Unset object>, diameter=<maptekblastlogic.types.Unset object>)[source]
Bases:
object- Parameters:
- angle
The hole angle from vertical towards the direction of the bearing (Degrees).
- bearing
The compass bearing the hole is pointing. Clockwise from north (Degrees).
maptekblastlogic.models.hole_model module
- class maptekblastlogic.models.hole_model.HoleModel(hole_id=<maptekblastlogic.types.Unset object>, blast_id=<maptekblastlogic.types.Unset object>, hole_name=<maptekblastlogic.types.Unset object>, row=<maptekblastlogic.types.Unset object>, echelon=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, design=<maptekblastlogic.types.Unset object>, last_known=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDetails of a hole.
- Parameters:
- last_known
The hole geometry according to most recent data.
- Type:
Union[‘HoleGeometry’, None, Unset]
- design: HoleGeometry | None | Unset
- last_known: HoleGeometry | None | Unset
maptekblastlogic.models.loaded_deck_model module
- class maptekblastlogic.models.loaded_deck_model.LoadedDeckModel(start_time, end_time, product_id, top_depth, bottom_depth, loaded_deck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, hole_id=<maptekblastlogic.types.Unset object>, is_deleted=<maptekblastlogic.types.Unset object>, shot_firer_id=<maptekblastlogic.types.Unset object>, crew_id=<maptekblastlogic.types.Unset object>, operator_id=<maptekblastlogic.types.Unset object>, loading_truck_id=<maptekblastlogic.types.Unset object>, comment=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectDescribes the loading of an individual deck. This is raw data collected from the field that has not been validated and reconciled in BlastLogic Desktop. As such, decks may overlap with each other. This data should not be relied upon as the current state of the hole.
- Attributes:
start_time (datetime.datetime): When charging this deck began (UTC). end_time (datetime.datetime): When charging this deck completed (UTC). Must be greater than or equal to
‘startTime’.
product_id (int): The ID of the product used in this deck top_depth (float): The depth of the top of this deck (Metres). Can be null if unknown. bottom_depth (float): The depth of the bottom of this deck (Metres). Can be null if unknown. loaded_deck_id (Union[None, Unset, int]): The unique identifier if this loaded deck. Ignored when creating.
Cannot be edited.
etag (Union[None, Unset, str]): The loaded deck’s current ETag. Ignored when creating and editing. created_by (Union[None, Unset, str]): Username of the person who created this loaded deck. Ignored when creating
and editing.
- created_time (Union[Unset, datetime.datetime]): When this loaded deck was created (UTC). Ignored when creating
and editing.
- last_modified_by (Union[None, Unset, str]): Username of the person who last updated this loaded deck. Ignored
when creating and editing.
- last_modified_time (Union[Unset, datetime.datetime]): When this loaded deck was last updated (UTC). Ignored when
creating and editing.
hole_id (Union[None, Unset, int]): The ID of the hole this loaded deck relates to. Cannot be edited. is_deleted (Union[Unset, bool]): Whether this loaded deck is deleted. Deleted loaded decks are considered
erroneous and all details are ignored.
- shot_firer_id (Union[None, Unset, int]): The ID of the person responsible for firing the blast. Can be null if
unknown.
crew_id (Union[None, Unset, int]): The ID of the crew that loaded this deck. Can be null if unknown. operator_id (Union[None, Unset, int]): The ID of the equipment operator. Can be null if unknown. loading_truck_id (Union[None, Unset, int]): The ID of the loading truck used to load this deck. Can be null if
unknown.
comment (Union[None, Unset, str]): Comments from the crew or operator about this loaded deck. mass (Union[None, Unset, float]): The mass of the product that was loaded into the hole (Kilograms). Cannot be
negative. Can be null if unknown.
- quantity (Union[None, Unset, int]): The number of product loaded into the hole. Cannot be negative. Can be null
if unknown.
maptekblastlogic.models.loading_truck_model module
- class maptekblastlogic.models.loading_truck_model.LoadingTruckModel(loading_truck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, active=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA truck used to load blast products into holes.
- Parameters:
- etag
The loading truck’s current ETag. Ignored when creating and editing.
- created_by
Username of the person who created this loading truck. Ignored when creating and editing.
- created_time
When this loading truck was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this loading truck. Ignored when creating and editing.
- last_modified_time
When this loading truck was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
maptekblastlogic.models.person_model module
- class maptekblastlogic.models.person_model.PersonModel(personnel_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_backfilling_supervisor=<maptekblastlogic.types.Unset object>, is_dipping_supervisor=<maptekblastlogic.types.Unset object>, is_loading_truck_operator=<maptekblastlogic.types.Unset object>, is_shot_firer=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA person and their responsibilities.
- Parameters:
- created_by
Username of the person who created this person. Ignored when creating and editing.
- created_time
When this person was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- last_modified_by
Username of the person who last updated this person. Ignored when creating and editing.
- last_modified_time
When this person was last updated (UTC). Ignored when creating and editing.
- Type:
Union[None, Unset, datetime.datetime]
- is_backfilling_supervisor
Whether this person can supervise backfilling activities.
- is_dipping_supervisor
Whether this person can supervise dipping activities.
maptekblastlogic.models.point module
maptekblastlogic.models.product_model module
- class maptekblastlogic.models.product_model.ProductModel(product_id=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, integration_id=<maptekblastlogic.types.Unset object>, type=<maptekblastlogic.types.Unset object>, open_cup_density=<maptekblastlogic.types.Unset object>, energy_density=<maptekblastlogic.types.Unset object>, density_table=<maptekblastlogic.types.Unset object>)[source]
Bases:
objectA consumable product used to blast holes.
- Parameters:
- integration_id
The identifier to help match this product in another system. Can be null.
- open_cup_density
The open cup density of this product (kg/m3). Can be null.
- energy_density
The energy released when this product is detonated (J/kg). Can be null.
- density_table
The density of this product at specific depths. Can be null.
- Type:
Union[List[‘DensityTableRow’], None, Unset]
- density_table: List[DensityTableRow] | None | Unset