Skip to content
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

Merged
merged 2 commits into from
Sep 12, 2024
Merged

chore: Python 3.12 (SCE-16) #1100

merged 2 commits into from
Sep 12, 2024

Conversation

kaloster
Copy link
Contributor

@kaloster kaloster commented Sep 11, 2024

  • 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)
Copy link
Contributor Author

@kaloster kaloster Sep 11, 2024

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
Copy link
Contributor Author

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'

@kaloster kaloster changed the title Kaloster/python 312 chore: Python 3.12 (SCE-16) Sep 11, 2024
@@ -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))
Copy link
Contributor Author

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

@kaloster kaloster marked this pull request as ready for review September 11, 2024 21:01
dev_docs/developer_scripts.md Outdated Show resolved Hide resolved
server/requirements.txt Outdated Show resolved Hide resolved
@atarashansky atarashansky self-requested a review September 11, 2024 21:41
Copy link
Contributor

@atarashansky atarashansky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1100 (comment)

^ just this but otherwise lgtm

@kaloster kaloster merged commit f767f66 into main Sep 12, 2024
28 checks passed
@kaloster kaloster deleted the kaloster/python-312 branch September 12, 2024 16:12
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.

2 participants