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

bug fix for MMWrite (invalid output on array format) #253

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

tweska
Copy link
Contributor

@tweska tweska commented Jun 26, 2024

I ran into this bug yesterday when you write a dense matrix to a file using the LAGraph_MMWrite, the python scipy.io.mminfo function starts complaining when you read the file. This is because the array format is used when you write a dense matrix, but the MMWrite function still outputs the number of entries. This behavior should be different for the array format than for the coordinate format.

I consulted both the MatrixMarket format documentation, as well as your documentation (https://lagraph.readthedocs.io/en/latest/utils.html#array-format). It seems to agree that this is not correct behavior and Scipy has the right to scream. A quote from your documentation: For array format, the first non-comment line must appear, and it must contain just two integers

I hope I formatted everything correctly, let me know if I need to change anything.

minor build updates for LAGraph 1.1.1
LAGraph 1.1.2: minor updates to build system
for array format, the first non-comment line must contain just two integers
@DrTimothyAldenDavis DrTimothyAldenDavis changed the base branch from stable to v1.2 July 1, 2024 13:15
@DrTimothyAldenDavis DrTimothyAldenDavis changed the base branch from v1.2 to stable July 1, 2024 13:16
@DrTimothyAldenDavis DrTimothyAldenDavis changed the base branch from stable to v1.1_branch July 1, 2024 15:34
@DrTimothyAldenDavis
Copy link
Member

Yes, that's a bug. Thanks for catching that.

I changed the PR to make it for the v1.1_branch since stable branch is protected against PRs. The most recent development version is on the v1.2 branch, but the CI is currently failing there. The v1.2 branch is very different than v1.1; I tried to rebase to that but there were too many unrelated changes.

@DrTimothyAldenDavis DrTimothyAldenDavis merged commit 64a629f into GraphBLAS:v1.1_branch Jul 1, 2024
6 checks passed
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