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

function update_weights_matrix, get_residual_matrix, reconstruct_data #19

Merged
merged 16 commits into from
Jul 20, 2023

Conversation

aajayi-21
Copy link
Contributor

No description provided.

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

good start! small gripe....please see inline.

diffpy/snmf/tests/test_subroutines.py Show resolved Hide resolved
Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

please write meaningful commit messages. updates is not acceptable. There have to be updates or you can't even make a PR (git checks for differences). In the commit message, put what the intent of the changes was. For example, instead of "update tests" say "added test to check for zero's in the in put array in update_weights_matrix" or something like that.

… describe the nature of the parameters and return values.
… case. Added tests cases for get_residual_matrix to test negative and zero values. Corrected test cases for reconstruct_data
@aajayi-21
Copy link
Contributor Author

In "reconstruct_data" function, I realized the matlab code and my code yielded that same solution (besdies the slight difference in interpolation). However, the matlab code formatted the answer differently which is why is failed before. In my code, the blocks of the solution represented each moment, but in the matlab code the blocks represented each component (so the difference was only in the order of the columns).

@sbillinge
Copy link
Contributor

In "reconstruct_data" function, I realized the matlab code and my code yielded that same solution (besdies the slight difference in interpolation). However, the matlab code formatted the answer differently which is why is failed before. In my code, the blocks of the solution represented each moment, but in the matlab code the blocks represented each component (so the difference was only in the order of the columns).

sounds good. This is still failing tests and marked as draft, but it looks as if it is approaching where it can be merged. Please just let me know when we get there.

@aajayi-21 aajayi-21 marked this pull request as ready for review July 20, 2023 18:13
@sbillinge sbillinge merged commit ef7eb09 into diffpy:main Jul 20, 2023
1 check passed
@sbillinge
Copy link
Contributor

super!

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