Open kinverarity1 opened 5 years ago
Hmm. When I had IPython's autoreload extension on, I got this after trying lasio.read:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-487f1df603ea> in <module> ----> 1 lasio.read(r"tests\examples\sample.las").params ~\code\lasio\lasio\__init__.py in read(file_ref, **kwargs) 39 40 ''' ---> 41 return LASFile(file_ref, **kwargs) ~\code\lasio\lasio\las.py in __init__(self, file_ref, **read_kwargs) 67 self._text = "" 68 self.index_unit = None ---> 69 default_items = defaults.get_default_items() 70 self.sections = { 71 "Version": default_items["Version"], ~\code\lasio\lasio\defaults.py in get_default_items() 11 return { 12 'Version': SectionItems([ ---> 13 HeaderItem('VERS', '', 2.0, 'CWLS log ASCII Standard -VERSION 2.0'), 14 HeaderItem('WRAP', '', 'NO', 'One line per depth step'), 15 HeaderItem('DLM', '', 'SPACE', 'Column Data Section Delimiter'), ~\code\lasio\lasio\las_items.py in __init__(self, mnemonic, unit, value, descr, data) 30 ''' 31 def __init__(self, mnemonic='', unit='', value='', descr='', data=None): ---> 32 super(HeaderItem, self).__init__() 33 34 # The original mnemonic needs to be stored for rewriting a new file. TypeError: super(type, obj): obj must be an instance or subtype of type
I have faced the same today then pulled lasio update with autoreload. had to restart the kernel
This seems relevant https://stackoverflow.com/a/52898473/596328
Hmm. When I had IPython's autoreload extension on, I got this after trying lasio.read: