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

Elehcim gadget2 particle #12

Merged
merged 21 commits into from
Dec 16, 2021
Merged

Elehcim gadget2 particle #12

merged 21 commits into from
Dec 16, 2021

Conversation

islent
Copy link
Member

@islent islent commented Dec 16, 2021

No description provided.

elehcim and others added 21 commits November 25, 2021 14:47
- Many routines translated from pynbody to read gadget2 files (format 1 and 2).
- Drastically reduced code repetition.

TODO:
- A config file needed for collect gadget user defined fields and relative units.
- StructArray data type (e.g. Float32 of Float64) can't be instantiated at runtime. I think it should be possible, but still I need to find a way.
- Rebase with latest modifications upstream
More elegant way, not having to append!
(which was causing a 'type does not have a definite number of fields' error).
Also probably more efficient because memory is contiguous from the beginning.
because there is no method for
`peek(::Stream{DataFormat{:Gadget2}, args...)`
@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #12 (65097b7) into master (b37f3d5) will increase coverage by 4.01%.
The diff coverage is 89.01%.

❗ Current head 65097b7 differs from pull request most recent head d9027b1. Consider uploading reports for the commit d9027b1 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   70.13%   74.14%   +4.01%     
==========================================
  Files           8        9       +1     
  Lines         673      704      +31     
==========================================
+ Hits          472      522      +50     
+ Misses        201      182      -19     
Impacted Files Coverage Δ
src/ConfParser.jl 74.07% <74.07%> (ø)
src/Gadget.jl 83.43% <90.65%> (+6.69%) ⬆️
src/PrettyPrint.jl 0.00% <0.00%> (-100.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b37f3d5...d9027b1. Read the comment docs.

@islent islent merged commit 1bb9949 into master Dec 16, 2021
@islent islent deleted the elehcim-Gadget2Particle branch December 16, 2021 14:45
@islent islent mentioned this pull request Dec 16, 2021
5 tasks
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.

2 participants