malikolivier / fitrs Goto Github PK
View Code? Open in Web Editor NEWAn attempt at making a FITS file parser in pure rust
License: GNU General Public License v3.0
An attempt at making a FITS file parser in pure rust
License: GNU General Public License v3.0
Hi, this code panicked:
fn main(){
let data = vec![0; 20*20];
let mut primary_hdu = fitrs::Hdu::new(&[20, 20], data);
primary_hdu.insert("KEYFLOAT", 299.999);
fitrs::Fits::create("new_file.fits", primary_hdu).expect("Failed to create");
}
// thread 'main' panicked at 'attempt to subtract with overflow', fitrs-0.5.0\src\fits.rs:1011:25
Hi!
First, thanks for your work on this library; it has been useful for me.
Second, I apologise if this request comes as rude or inconsiderate - it is not meant to be as such.
My understanding is that fitrs
, as it is GPLv3 licensed, will require any software that uses fitrs
to also have a GPLv3 license. Personally, I do not have an issue with this. However, recently, I have learned that some of my collaborators at a university (I shall not mention which) are not allowed to use any GPL libraries (perhaps out of fear that the copyleft nature of the license would prevent any profits on any profitable software). In my industry (academia/astrophysics), we're unlikely to make any software of monetary value, but all the same, it seems that some people would not be able to access your code simply because of the license. For this reason, personally, I will be implementing the Mozilla Public License (https://www.mozilla.org/en-US/MPL/2.0/FAQ/) in all of my future works, as well as existing ones (when I get around to them). I wonder if this would be a suitable replacement for fitrs
, such that everyone could benefit from the code. A good example of how the GPL license can generate a lot of extra work is here: https://astropy-healpix.readthedocs.io/en/latest/about.html#about
Again, personally, I don't have an issue with the GPL, and I strongly endorse the spirit of it. However, I feel that making my code as available as possible is more important, and the MPL seems to be a good fit for that. Having said all that, feel free to disregard everything I've said - it is your code!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.