Skip to content

Code quality review fixes - #196

Open
matteobachetti wants to merge 40 commits into
mainfrom
code_quality_review_fixes
Open

Code quality review fixes#196
matteobachetti wants to merge 40 commits into
mainfrom
code_quality_review_fixes

Conversation

@matteobachetti

Copy link
Copy Markdown
Member

No description provided.

Baseline-correction (lc.baseline) calls stingray's _als, which still
uses scipy.sparse.csc_matrix; scipy's dev builds now warn about it and
our error::DeprecationWarning filter turns that into a test failure.
matplotlib 3.8 (pinned for oldestdeps) still calls pyparsing's
pre-PEP8 enablePackrat(); pyparsing 3.3.0 turned that compat alias
into a DeprecationWarning, which our filterwarnings turns into a
collection error.
save_as_netcdf and read_from_netcdf never closed rootgrp on the
exception paths, leaking an open HDF5 handle. When a later test wrote
a new file at the same path, HDF5's file-open cache could key the new
file to the stale handle and corrupt reads of it -- reproduced
locally as the segfault seen in the alldeps CI job, in
TestReadEvents.test_load_events. Using nc.Dataset as a context
manager guarantees the close.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant