-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD: Auto Read Function #205
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #205 +/- ##
==========================================
+ Coverage 91.95% 92.08% +0.13%
==========================================
Files 23 24 +1
Lines 4562 4637 +75
==========================================
+ Hits 4195 4270 +75
Misses 367 367
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
history.md
Description: Enhanced Radar File Reading Functionality with Timeout Support
Summary:
This PR introduces the
auto_read.py
module, which provides an enhancedread
function designed to improve the radar file reading process in thexradar
library. Theread
function iterates over all available file-opening functions withinxradar.io
to attempt to read radar files, with added support for georeferencing and verbose output. A key feature of this function is its ability to handle timeouts, ensuring that long-running file reads do not block execution indefinitely.Key Features:
read
function attempts to open the provided radar file using all availableopen_
functions in thexradar.io
module, automatically selecting the correct file format.timeout
parameter. If specified, the file read operation is wrapped in a timeout handler, raising aTimeoutException
if the read operation exceeds the allowed time.georeference
parameter is set toTrue
.verbose
option is available to print detailed processing information, aiding in debugging and providing insights into which file-opening method was successful.ValueError
if the file cannot be opened by any supported format, providing clear feedback in cases of unsupported file types or corrupted files.Usage:
Other tests