Skip to content

Commit c9ba08c

Browse files
Version bump. Added Drillhole structure and accessors for properties and surveys
1 parent ff73ccb commit c9ba08c

File tree

7 files changed

+231
-192
lines changed

7 files changed

+231
-192
lines changed

LoopProjectFile/DataCollection.py

Lines changed: 212 additions & 184 deletions
Large diffs are not rendered by default.

LoopProjectFile/ExtractedInformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def SetDrillholeLog(root, data, append=False, verbose=False):
286286
else:
287287
eiGroup = resp["value"]
288288

289-
resp = GetStratigraphicInformationGroup(root)
289+
resp = GetDrillholeDescriptionGroup(root)
290290
if resp["errorFlag"]:
291291
siGroup = eiGroup.createGroup("DrillholeInformation")
292292
siGroup.createDimension("index",None)

LoopProjectFile/LoopProjectFile.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ def Set(filename, element, **kwargs):
216216
elif element == "contactsAppend": response = DataCollection.SetContacts(root, append=True, **kwargs)
217217
elif element == "drillholeObservations": response = DataCollection.SetDrillholeObservations(root, **kwargs)
218218
elif element == "drillholeObservationsAppend": response = DataCollection.SetDrillholeObservations(root, append=True, **kwargs)
219+
elif element == "drillholeSurveys": response = DataCollection.SetDrillholeSurveys(root, **kwargs)
220+
elif element == "drillholeSurveysAppend": response = DataCollection.SetDrillholeSurveys(root, append=True, **kwargs)
221+
elif element == "drillholeProperties": response = DataCollection.SetDrillholeProperties(root, **kwargs)
222+
elif element == "drillholePropertiesAppend": response = DataCollection.SetDrillholeProperties(root, append=True, **kwargs)
219223
elif element == "stratigraphicLog": response = ExtractedInformation.SetStratigraphicLog(root, **kwargs)
220224
elif element == "stratigraphicLogAppend": response = ExtractedInformation.SetStratigraphicLog(root, append=True, **kwargs)
221225
elif element == "faultLog": response = ExtractedInformation.SetFaultLog(root, **kwargs)
@@ -307,6 +311,8 @@ def Get(filename, element, **kwargs):
307311
elif element == "stratigraphicObservations": response = DataCollection.GetStratigraphicObservations(root,**kwargs)
308312
elif element == "contacts": response = DataCollection.GetContacts(root,**kwargs)
309313
elif element == "drillholeObservations": response = DataCollection.GetDrillholeObservations(root,**kwargs)
314+
elif element == "drillholeSurveys": response = DataCollection.GetDrillholeSurveys(root,**kwargs)
315+
elif element == "drillholeProperties": response = DataCollection.GetDrillholeProperties(root,**kwargs)
310316
elif element == "stratigraphicLog": response = ExtractedInformation.GetStratigraphicLog(root,**kwargs)
311317
elif element == "faultLog": response = ExtractedInformation.GetFaultLog(root,**kwargs)
312318
elif element == "foldLog": response = ExtractedInformation.GetFoldLog(root,**kwargs)
@@ -438,10 +444,15 @@ def CheckFileValid(filename, verbose=False):
438444
drillholeDescriptionType = numpy.dtype([('collarId','<u4'),('holeName','S30'),
439445
('surfaceX','<f8'),('surfaceY','<f8'),('surfaceZ','<f8')])
440446

447+
drillholePropertyType = numpy.dtype([('collarId','<u4'),('propertyName','S30'),('propertyValue','S80')])
448+
441449
drillholeObservationType = numpy.dtype([('collarId','<u4'),
442-
('topX','<f8'),('topY','<f8'),('topZ','<f8'), ('layerId','<u4'),
443-
('baseX','<f8'),('baseY','<f8'),('baseZ','<f8'),
444-
('beddingDip','<f8'),('beddingAzimuth','<f8')])
450+
('fromX','<f8'),('fromY','<f8'),('fromZ','<f8'), ('layerId','<u4'),
451+
('toX','<f8'),('toY','<f8'),('toZ','<f8'),('from','<f8'),('to','<f8'),
452+
('propertyCode','S30'),('property1','S30'),('property2','S30'),('unit','S30')])
453+
454+
drillholeSurveyType = numpy.dtype([('collarId','<u4'),('depth','<f8'),
455+
('angle1','<f8'),('angle2','<f8'),('unit','S30')])
445456

446457
def ConvertDataFrame(df,dtype):
447458
if isinstance(df,pandas.DataFrame):

LoopProjectFile/Version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def LoopVersion():
1111
List of current version [Major,Minor,Sub]version
1212
1313
"""
14-
return [0,0,19]
14+
return [0,0,20]
1515

1616
# Check version of Loop Project File is valid
1717
def CheckVersionValid(rootGroup, verbose=False):

LoopProjectFile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
faultEventType, foldEventType, discontinuityEventType, foliationEventType, \
33
faultObservationType, foldObservationType, foliationObservationType, discontinuityObservationType, \
44
stratigraphicLayerType, stratigraphicObservationType, contactObservationType, \
5-
eventRelationshipType, drillholeObservationType, drillholeDescriptionType, \
5+
eventRelationshipType, drillholeObservationType, drillholeDescriptionType, drillholeSurveyType, drillholePropertyType, \
66
ConvertDataFrame, ConvertToDataFrame, EventType, EventRelationshipType, CheckFileIsLoopProjectFile
77
from .Permutations import Event, perm, ApproxPerm, CalcPermutation, checkBrokenRules, checkBrokenEventRules
88
from .LoopProjectFileUtils import ToCsv, FromCsv, ElementToCsv, ElementFromCsv, ElementToDataframe, ElementFromDataframe

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "loopprojectfile" %}
2-
{% set version = "0.0.19" %}
2+
{% set version = "0.0.20" %}
33

44
package:
55
name: "{{ name|lower }}"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
setup(
44
name="LoopProjectFile",
55
packages=find_packages(),
6-
version="0.0.19",
6+
version="0.0.20",
77
)

0 commit comments

Comments
 (0)