예제 #1
0
 def classify_lithology(self, classifier, admixclassifier=None):
     if self.complete:
         self.segments = []
         top = 0.
         for row in self.rows:
             base = row.depth
             lithology = classifier.classify(
                 row.friction_ratio,
                 row.cone_resistance,
                 )
             segment = Segment(top, base, lithology)
             segment.update(admixclassifier.classify(segment.lithology))
             self.segments.append(segment)
             top = base
예제 #2
0
파일: cpt.py 프로젝트: ritchie46/xsboringen
 def classify_lithology(self, classifier, admixclassifier=None):
     if self.complete:
         self.segments = []
         top = 0.
         for row in self.rows:
             base = row.depth
             lithology = classifier.classify(
                 row.friction_ratio,
                 row.cone_resistance,
             )
             segment = Segment(top, base, lithology)
             segment.update(admixclassifier.classify(segment.lithology))
             self.segments.append(segment)
             top = base
예제 #3
0
 def classify_lithology(self, classifier, admixclassifier=None):
     if self.complete:
         self.segments = []
         for i, row in enumerate(self.rows):
             base = row.depth
             if i == 0:
                 top = 0.
                 blind_segment = Segment(top, base, "O")
                 self.segments.append(blind_segment)
                 top = base
                 continue
             lithology = classifier.classify(
                 row.friction_ratio,
                 row.cone_resistance,
             )
             segment = Segment(top, base, lithology)
             segment.update(admixclassifier.classify(segment.lithology))
             self.segments.append(segment)
             top = base