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

Added load_sexes and expanded load_problem to support it #23

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

Foggalong
Copy link
Owner

Adds load_sexes to fix #18. The loader load_problem uses the standard variable names used throughout the rest of the module and is more robust (only sigma_filename and mu_filename are required, everything else is optional).

@@ -149,7 +149,7 @@ def load_sparse_symmetric_matrix(filename: str, dimension: int, nnz: int,
def load_sexes(filename: str, dimension: int) -> tuple[
npt.NDArray[np.unsignedinteger],
npt.NDArray[np.unsignedinteger],
npt.NDArray[np.str]
npt.NDArray[np.str_]
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is specifically only a problem in versions of NumPy released after the one packaged with my Ubuntu which is why I didn't catch this locally 🤦‍♀️

@Foggalong Foggalong merged commit 636ba20 into main Jul 25, 2024
2 checks passed
@Foggalong Foggalong deleted the sex-data branch July 25, 2024 16:49
@Foggalong Foggalong added the enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import Sex Data
1 participant