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

Add a wrapper for C.H5Lexists for the CommonFG, returns nil if link e… #57

Merged
merged 6 commits into from
Sep 20, 2019

Conversation

zyc-sudo
Copy link
Contributor

@zyc-sudo zyc-sudo commented Sep 17, 2019

Added the C.H5Lexists to check if the link(group, dataset, link) exists
Please take a look.

@zyc-sudo zyc-sudo mentioned this pull request Sep 17, 2019
@zyc-sudo
Copy link
Contributor Author

This GolangCI failure:
compilation terminated.
# gonum.org/v1/hdf5
./cgoflags.go:12:19: fatal error: hdf5.h: No such file or directory

I assume it is a CI setup error rather than code error?
// #include "hdf5.h"

@kortschak
Copy link
Member

That failure looks to be related to golangci/golangci#35. I'm not sure how to deal with this since we are completely tied to Cgo with this repo.

@kortschak
Copy link
Member

This should be fixed by #60.

@zyc-sudo
Copy link
Contributor Author

zyc-sudo commented Sep 17, 2019 via email

Copy link
Member

@kortschak kortschak left a comment

Choose a reason for hiding this comment

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

I think a bool is better here. Possibly with an error as well, but probably not.

h5g_group.go Outdated Show resolved Hide resolved
@zyc-sudo
Copy link
Contributor Author

zyc-sudo commented Sep 18, 2019 via email

@zyc-sudo
Copy link
Contributor Author

@kortschak Hi I make the changes, I also merged it to the other PR regarding the images where this feature is used

h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
h5g_group_test.go Outdated Show resolved Hide resolved
@zyc-sudo
Copy link
Contributor Author

zyc-sudo commented Sep 19, 2019 via email

@kortschak kortschak merged commit b0d662f into gonum:master Sep 20, 2019
@kortschak
Copy link
Member

Thanks

@zyc-sudo
Copy link
Contributor Author

zyc-sudo commented Sep 20, 2019 via email

@kortschak
Copy link
Member

I neglected to say, would you please send a PR adding yourself to AUTHORS and CONTRIBUTORS at gonum/gonum. Please use the commit message "A+C: add Yucheng Zhu" (I assume this is your name from the commits).

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.

4 participants