-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support creating fitsfiles from raw pointers #195
Conversation
65700f7
to
81a5cd2
Compare
81a5cd2
to
bacbd62
Compare
I haven't run the code myself, but I trust that it works, and it looks fine to me. My only real comment is to do with the mandatory |
46a03a1
to
dabece5
Compare
Thanks for pointing this out. I hadn't really considered that, nor that the filename is actually optional for the I think we can get away without needing the optional filename for opening/creating a disk-backed file. dabece5 shows how we can require the field for Update: I've done this in a new commit 3342d16... |
I think I'll merge this, but I'll write up a changelog entry first. Hopefully nobody is depending on the |
This is an unsafe operation and has been marked as such.
I was getting conflicts between the versions of `fitsio-sys` that were included in the crate compilation. Rust only allows one crate that links with a system library to be included in the list of crates. By exporting `fitsio-sys`, we can ensure that if the user needs `fitsio-sys`, then it's the same version that's used by `fitsio` and there will be no conflict.
This removes some warnings
Not every fits file has a filename. We don't use the filename for anything in particular, so make it optional.
People should not be using this field themselves. It's only for us if pretty-printing is used.
37e251b
to
dcf2436
Compare
Your changes match what I would've done! Looks good. I didn't spot that Just a friendly reminder that we're using |
That's awesome, glad to hear the crate is being battle tested! |
Closes #194