Skip to content

Conversation

@JetstreamRoySprowl
Copy link
Contributor

Fix NDArray.mgrid and add unit tests. Also corrects the Object comparer for NDArray to compare shape and data contents.

@JetstreamRoySprowl
Copy link
Contributor Author

Resolves #313

Copy link
Member

@Nucs Nucs left a 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!


`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>`
Copy link
Member

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

is some Python code that spits out C# definitions for static NDArrays
that can be used in unit tests:

```python
Copy link
Member

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)

print("")

# generate mgrid unit test data (we're trusting Python here)
aa, bb = np.mgrid[0:5, 0:3]
Copy link
Member

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

Updated and squashed with all requested changes.

@Oceania2018 Oceania2018 requested a review from Nucs July 17, 2019 20:27
@Nucs Nucs merged commit 8d48558 into SciSharp:master Jul 17, 2019
@JetstreamRoySprowl
Copy link
Contributor Author

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.

@Nucs
Copy link
Member

Nucs commented Jul 18, 2019

@Oceania2018, can you release a minor update (0.10.4) for NumSharp? There are quite few changes by the last release.

@Oceania2018
Copy link
Member

Sure, Before releasing, I have to fix another issue. I need to sign the library.
Referenced assembly 'NumSharp.Core, Version=0.10.3.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.

@Nucs
Copy link
Member

Nucs commented Jul 18, 2019

@JetstreamRoySprowl 0.10.4.0 is published.

@JetstreamRoySprowl
Copy link
Contributor Author

@Nucs , @Oceania2018 , just what I needed -- thanks so much!

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.

3 participants