-
I have been using lasio for a few months now. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What version of lasio?
…On Wed, Nov 3, 2021 at 2:04 PM bzlmnop ***@***.***> wrote:
I have been using lasio for a few months now.
I have one jupyter notebook that I use it in to read a bunch of .las files.
I just started a new notebook doing a similar operation, and now every
time lasio.read() is called, it prints "Opening {my las file} as ascii and
treating errors with "replace"" where {my las file} is the file path string
I passed to the function.
I don't recall this happening in my previous notebook and cannot figure
out how to prevent it from happening.
It is seriously slowing down my code.
Any ideas/help would be greatly appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#497>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDVBLCOROCM5O3ZTMU2H63UKGPXRANCNFSM5HJ2ISGQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Thomas Martin
(805) 904-9991
|
Beta Was this translation helpful? Give feedback.
-
For me the fix was to add: |
Beta Was this translation helpful? Give feedback.
-
Looks like you found the right solution. For reference, there is a discussion and examples of setting logging in the "set logging level for lasio" example notebook at: It covers configuring logging to add more logging output and, toward the end, how to reduce logging output. |
Beta Was this translation helpful? Give feedback.
For me the fix was to add:
import logging
logging.basicConfig()
logging.getLogger().setLevel(logging.ERROR)
To the cell in Jupyter or the script in Spyder that is calling lasio.read().