Skip to content

Commit

Permalink
Version bump. Increased length of strings for names and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyThomsonMonash committed Jul 21, 2022
1 parent c9ba08c commit 34e6ec9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions LoopProjectFile/LoopProjectFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def CheckFileValid(filename, verbose=False):
foldObservationType = numpy.dtype([('eventId','<u4'),
('easting','<f8'),('northing','<f8'),('altitude','<f8'),('type','<i4'),
('axisX','<f8'),('axisY','<f8'),('axisZ','<f8'),
('foliation','S30'),('whatIsFolded','S30')])
('foliation','S120'),('whatIsFolded','S120')])

foliationObservationType = numpy.dtype([('eventId','<u4'),
('easting','<f8'),('northing','<f8'),('altitude','<f8'),('type','<i4'),
Expand All @@ -402,10 +402,10 @@ def CheckFileValid(filename, verbose=False):
stratigraphicObservationType = numpy.dtype([('layerId','<u4'),
('easting','<f8'),('northing','<f8'),('altitude','<f8'),('type','<i4'),
('dipDir','<f8'),('dip','<f8'),('dipPolarity','<f8'),
('layer','S30')])
('layer','S120')])

faultEventType = numpy.dtype([('eventId','<u4'),
('minAge','<f8'),('maxAge','<f8'),('name','S30'),('group','S30'),('supergroup','S30'),
('minAge','<f8'),('maxAge','<f8'),('name','S120'),('group','S120'),('supergroup','S120'),
('enabled','u1'),('rank','<u4'),('type','<i4'),
('avgDisplacement','<f8'),('avgDownthrowDir','<f8'),
('influenceDistance','<f8'),('verticalRadius','<f8'),
Expand All @@ -415,24 +415,24 @@ def CheckFileValid(filename, verbose=False):
('avgNormalEasting','<f8'),('avgNormalNorthing','<f8'),('avgNormalAltitude','<f8')])

foldEventType = numpy.dtype([('eventId','<u4'),
('minAge','<f8'),('maxAge','<f8'),('name','S30'),('group','S30'),('supergroup','S30'),
('minAge','<f8'),('maxAge','<f8'),('name','S120'),('group','S120'),('supergroup','S120'),
('enabled','u1'),('rank','<u4'),('type','<i4'),
('periodic','u1'),('wavelength','<f8'),('amplitude','<f8'),
('asymmetry','u1'),('asymmetryShift','<f8'),
('secondaryWavelength','<f8'),('secondaryAmplitude','<f8')])

foliationEventType = numpy.dtype([('eventId','<u4'),
('minAge','<f8'),('maxAge','<f8'),('name','S30'),('group','S30'),('supergroup','S30'),
('minAge','<f8'),('maxAge','<f8'),('name','S120'),('group','S120'),('supergroup','S120'),
('enabled','u1'),('rank','<u4'),('type','<i4'),
('lowerScalarValue','<f8'),('upperScalarValue','<f8')])

discontinuityEventType = numpy.dtype([('eventId','<u4'),
('minAge','<f8'),('maxAge','<f8'),('name','S30'),('group','S30'),('supergroup','S30'),
('minAge','<f8'),('maxAge','<f8'),('name','S120'),('group','S120'),('supergroup','S120'),
('enabled','u1'),('rank','<u4'),('type','<i4'),
('scalarValue','<f8')])

stratigraphicLayerType = numpy.dtype([('layerId','<u4'),
('minAge','<f8'),('maxAge','<f8'),('name','S30'),('group','S30'),('supergroup','S30'),
('minAge','<f8'),('maxAge','<f8'),('name','S120'),('group','S120'),('supergroup','S120'),
('enabled','u1'),('rank','<u4'),('type','<i4'),
('thickness','<f8'),
('colour1Red','u1'),('colour1Green','u1'),('colour1Blue','u1'),
Expand All @@ -441,18 +441,18 @@ def CheckFileValid(filename, verbose=False):
eventRelationshipType = numpy.dtype([('eventId1','<u4'),('eventId2','<u4'),('bidirectional','u1'),
('angle','<f8'),('type','<i4')])

drillholeDescriptionType = numpy.dtype([('collarId','<u4'),('holeName','S30'),
drillholeDescriptionType = numpy.dtype([('collarId','<u4'),('holeName','S120'),
('surfaceX','<f8'),('surfaceY','<f8'),('surfaceZ','<f8')])

drillholePropertyType = numpy.dtype([('collarId','<u4'),('propertyName','S30'),('propertyValue','S80')])
drillholePropertyType = numpy.dtype([('collarId','<u4'),('propertyName','S120'),('propertyValue','S80')])

drillholeObservationType = numpy.dtype([('collarId','<u4'),
('fromX','<f8'),('fromY','<f8'),('fromZ','<f8'), ('layerId','<u4'),
('toX','<f8'),('toY','<f8'),('toZ','<f8'),('from','<f8'),('to','<f8'),
('propertyCode','S30'),('property1','S30'),('property2','S30'),('unit','S30')])
('propertyCode','S120'),('property1','S120'),('property2','S120'),('unit','S120')])

drillholeSurveyType = numpy.dtype([('collarId','<u4'),('depth','<f8'),
('angle1','<f8'),('angle2','<f8'),('unit','S30')])
('angle1','<f8'),('angle2','<f8'),('unit','S120')])

def ConvertDataFrame(df,dtype):
if isinstance(df,pandas.DataFrame):
Expand Down
2 changes: 1 addition & 1 deletion LoopProjectFile/Version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def LoopVersion():
List of current version [Major,Minor,Sub]version
"""
return [0,0,20]
return [0,0,21]

# Check version of Loop Project File is valid
def CheckVersionValid(rootGroup, verbose=False):
Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "loopprojectfile" %}
{% set version = "0.0.20" %}
{% set version = "0.0.21" %}

package:
name: "{{ name|lower }}"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
setup(
name="LoopProjectFile",
packages=find_packages(),
version="0.0.20",
version="0.0.21",
)

0 comments on commit 34e6ec9

Please sign in to comment.