-
Notifications
You must be signed in to change notification settings - Fork 203
Fix NDArray.mgrid and add unit tests. Also corrects the Object compar… #314
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
Conversation
|
Resolves #313 |
Nucs
left a comment
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.
Thank you for the PR!
test/NumSharp.UnitTest/README.md
Outdated
|
|
||
| `PS D:\Projects\NumSharp> OpenCover.Console -register:user -target:"dotnet.exe" -targetargs:test -filter:"+[NumSharp.UnitTest]*" -output:"coverage.xml" -oldstyle` | ||
| `PS D:\Projects\NumSharp> codecov -f coverage.xml -t <codecov-numsharp-token>` | ||
| `PS D:\Projects\NumSharp> codecov -f coverage.xml -t <codecov-numsharp-token>` |
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.
Please revert the changes in this file,
See comments below
test/NumSharp.UnitTest/README.md
Outdated
| is some Python code that spits out C# definitions for static NDArrays | ||
| that can be used in unit tests: | ||
|
|
||
| ```python |
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.
The generating code should be placed in NumSharp.UnitTest/Utilities/ndarray-generator.py (or named anything of that sort)
test/NumSharp.UnitTest/README.md
Outdated
| print("") | ||
|
|
||
| # generate mgrid unit test data (we're trusting Python here) | ||
| aa, bb = np.mgrid[0:5, 0:3] |
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.
The code that was used to generate you can place as a comment in Creation/NdArray.Mgrid.Test.cs
…er for NDArray to compare shape and data contents.
|
Updated and squashed with all requested changes. |
|
Thanks, @Nucs ! Is there a chance of getting the NuGet pushed up right away? My project is using Azure IoT Edge devices which get built in docker containers, so there's no good way to get this update (which is on my critical path) without nuget. |
|
@Oceania2018, can you release a minor update (0.10.4) for NumSharp? There are quite few changes by the last release. |
|
Sure, Before releasing, I have to fix another issue. I need to sign the library. |
|
@JetstreamRoySprowl |
|
@Nucs , @Oceania2018 , just what I needed -- thanks so much! |
Fix NDArray.mgrid and add unit tests. Also corrects the Object comparer for NDArray to compare shape and data contents.