agilescientific / striplog

Lithology and stratigraphic logs for wells or outcrop.
https://code.agilescientific.com/striplog
Apache License 2.0
204 stars 69 forks source link

Passing a `tuple` to `Component` is not recognized #126

Closed Zabamund closed 3 years ago

Zabamund commented 3 years ago

The Component docstring states that: Initialize with a dictionary of properties. You can use any properties you want but when trying to pass a tuple, this is omitted from the component instance:

desc = 'bl Mrl ab thn bdd mrl ls'
props = {'Formation': 'Shiranish',
         'Period': 'Cretaceous',
         'desc': desc,
         'Lithology': lexicon.expand_abbreviations(desc),
         'Thickness [m]': 227.8,
         'Type locality': 'Shiranish Islam, near Zakho, Northen Iraq',
         'Coords_tuple_string': ("37°11'32''N", "42°50'30''E"), # this is not used
         'Coords_tuple_numeric': (123, 456),                    # this is not used
         'Coords_N': "37°11'32''N",
         'Coords_E': "42°50'30''E",
        }
shiranish = Component(props)
shiranish

image

Zabamund commented 3 years ago

Fixed by PR #130