-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First step for #108 Added new `name` arg to `Interval` constructor, and will set `self.name` to that, if it is passed. Still need to think about where in the repr this attribute goes, and it will need to be caught in various methods that call `Interval`, such as `Striplog._build_list_of_intervals`. There do not seem to be many, on a quick search.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from striplog import Interval | ||
from striplog import Lexicon | ||
|
||
lexicon = Lexicon.default() | ||
|
||
text = "wet silty fine sand with tr clay" | ||
|
||
interval = Interval._parse_description(text, lexicon=lexicon, max_component=3, abbreviations=True) | ||
|
||
print(interval) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters