-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: Python 3.12 (SCE-16) #1100
Conversation
kaloster
commented
Sep 11, 2024
•
edited
Loading
edited
- Updated Python version for GHA workflow
- Updated flatbuffers to 2.0.7
- Updated to Scipy 1.14.1
- Updated unit tests and related code
@@ -51,7 +51,11 @@ def test_tdb_bug(self): | |||
) | |||
dat = data.summarize_var("mean", filt, 0) | |||
summary = decode_fbs.decode_matrix_FBS(dat) | |||
self.assertDictContainsSubset({"n_rows": 2638, "n_cols": 1, "row_idx": None}, summary) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertDictContainsSubset
is deprecated
@@ -72,7 +72,7 @@ def encode_matrix_fbs(matrix, row_idx=None, col_idx=None, num_bins=None): | |||
raise ValueError("FBS Matrix must be 2D") | |||
|
|||
if sparse.issparse(matrix): | |||
matrix = matrix.A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AttributeError: 'csc_matrix' object has no attribute 'A'
5c230d8
to
2c1e7af
Compare
@@ -340,7 +340,9 @@ def _un_byteshuffle(buf: Union[bytes, bytearray, memoryview], dtype) -> np.ndarr | |||
|
|||
|
|||
def _delta(arr: np.ndarray) -> np.ndarray: | |||
return np.diff(arr, prepend=arr.dtype.type(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before this change tests such as def test_roundtrip()
would fail for precision 0.999
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ just this but otherwise lgtm
e2946ed
to
5ec059b
Compare