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

Complete cosmo_array numpy support and add cosmo_quantity #219

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6a34c84
Implement tests for cosmo_quantity.
kyleaoman Dec 12, 2024
07aac86
Initial cosmo_quantity implementation.
kyleaoman Dec 12, 2024
648e177
Merge branch 'master' into cosmo_quantity
kyleaoman Dec 12, 2024
6eede33
First rough working implementation of a numpy func overload.
kyleaoman Dec 12, 2024
32f9a2e
Start trudging through list of functions to wrap.
kyleaoman Dec 13, 2024
c9b8b6b
Work out an approach for concatenate-like functions.
kyleaoman Dec 13, 2024
37dd6af
Implement a few more funcs, rough in all the rest.
kyleaoman Dec 13, 2024
fd255dc
Fill in FFT functions, continue roughing in.
kyleaoman Dec 14, 2024
960bdbb
Implement block, around.
kyleaoman Dec 14, 2024
77f1d27
Implement a few more funcs.
kyleaoman Dec 14, 2024
914910a
Implement a few more numpy funcs.
kyleaoman Dec 14, 2024
a30350a
Start implementing histograms.
kyleaoman Dec 15, 2024
c51cd0b
Implement a few more numpy funcs.
kyleaoman Dec 15, 2024
f27c527
Implement linalg.det.
kyleaoman Dec 16, 2024
21585c5
Attempt histogramdd implementation.
kyleaoman Dec 16, 2024
daa2196
Wrap up histogram testing.
kyleaoman Dec 17, 2024
9f5f6e5
Amend physical conversion test because array_equal is now cosmo_array…
kyleaoman Dec 17, 2024
16e40cc
Implement a couple more numpy functions.
kyleaoman Dec 17, 2024
240b991
Check cosmo_factor for consistent scale_factor when preparing arguments.
kyleaoman Dec 18, 2024
8880a13
Implement a few more numpy functions.
kyleaoman Dec 18, 2024
30f4e35
Implement a few more numpy functions.
kyleaoman Dec 18, 2024
cf11cfd
Implement a few more numpy functions.
kyleaoman Dec 18, 2024
dd106fd
Implement more numpy functions.
kyleaoman Dec 19, 2024
77db41e
Finish implementing numpy functions, immediate tests pass.
kyleaoman Dec 19, 2024
922de1b
Overhaul initialisation to allow list of cosmo_arrays as input.
kyleaoman Dec 19, 2024
ec9e932
Cleanup some caught warnings that no longer happen :)
kyleaoman Dec 19, 2024
44a6f59
Remove some unused imports and variables.
kyleaoman Dec 19, 2024
3d87708
Add reshape to cosmo_quantity to enable some functions like meshgrid.
kyleaoman Dec 19, 2024
165f422
Implement numpy take function.
kyleaoman Jan 10, 2025
ef43675
Wrap np.ndarray.take properly.
kyleaoman Jan 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions swiftsimio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import swiftsimio.metadata as metadata
import swiftsimio.accelerated as accelerated
import swiftsimio.objects as objects
from swiftsimio.objects import cosmo_array, cosmo_quantity, cosmo_factor, a
import swiftsimio.visualisation as visualisation
import swiftsimio.units as units
import swiftsimio.subset_writer as subset_writer
Expand Down
Loading
Loading