-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improvement suggestions #18
Comments
Thanks for the feedback!
Those are certainly a good idea, will add that in the next release!
That is something I have already in mind, not sure how I will implement this yet though
There is a reason for that: The PriamryHdu is of type I could add a non-generic ImageHeaderDataUnit maybe, however I am not sure how this could be implemented yet.
That is also on purpose, Comments are optional. However, to make it more verbose I guess I could add some comments to them (I don't see the use of it though) |
Sorry forgot this part:
Yes! I will gladly do so :) |
Hello, Thank you for your replies,
I'm now using myarray.AsMemory().Span.CopyTo(doc.PrimaryHdu.Data.RawData.Span), maybe something like this can be exposed as a method for cleaner calling code
I have added header entries with comments, but the builtin entries are missing comments and someway this make the file "inconsistent" from an user point of view Thanks again |
You could add comments to the default header entries by doing |
Hello, Thanks for your reply, In the nuget package the Comment property is not accessible with the code As a workaround I now have the LINQ code Why not using a Dictionary instead of a List for Header entries? |
Ah yes that is true, you can not change the .Comment through .Header["xxx"], will have to see if I can change that. And Dictionaries require unique keys, which does not work for HEADER entries. Several keys can have multiple entires (like COMMENT, HISTORY, etc) |
If there are multiple entries with the same key, a good solution can be to use |
Another issue with Dictionaries are, that they do not retain order. |
Ok, better to keep entries as a list then. Thank you for the explanation. |
Hello
Here some suggestions:
And if you would like to cite in the Readme file, AstroCapture (Xamarin Android app) is using this library
The text was updated successfully, but these errors were encountered: