Commit Graph

342 Commits

Author SHA1 Message Date
Richard Stiskalek
7f58b1f78c
JAX and fix conc (#6)
* change to log10 initlogRs

* add uncertainty

* add check if hessian negative

* update TODO

* update TODO

* output the error too

* save e_logRs

* add concentration calculation

* calcul concentration

* missed comma in a list

* Update TODO

* fix bug

* add box units and pretty status

* make uncertainty optional

* add BIC function

* remove BIC again

* add new overdensity calculation

* change defualt values to max dist and mass

* change to r200

* new halo find

* speed up the calculation

* add commented fucn

* update TODO

* add check whether too close to outside boundary

* Update TODO

* extract velocity as well

* calculate m200 and m500

* update nb

* update TODO
2022-11-05 21:17:05 +00:00
rstiskalek
ee84c12a55 Merge branch 'master' of https://github.com/Richard-Sti/galomatch 2022-11-01 10:11:14 +00:00
Richard Stiskalek
ba98ecc299
Mass enclosed in a sphere calculation (#5)
* rename nb

* add merge func

* rm bug..

* add static methods

* save rmin, rmax

* add properties for box units

* move radial info to the clump

* add Npart explicit

* move where rmin, rmax obtained

* add box cosmo

* add __getattr__

* add comments in units

* add enclosed spherical mass

* rm unused variables

* add clump mass setter

* add the halo index

* add enclosed overdensity

* add enclosed_overdensity

* simplify loss func

* opt result to nan

* change Rs to log10

* change back to attribs

* add H0 and h props

* add setattrs

* Remove global constants

* move Msuncgs above

* add crit density

* add dots

* add r200c and r500c

* add M200 and M500

* make lowercase

* output r200, r500, m200, m500

* update TODO

* update README

* fit NFW only up to r200

* add r178, m178

* add m178, r178

* update TODO
2022-11-01 10:10:54 +00:00
rstiskalek
865077c3c2 rename nb 2022-10-31 16:47:24 +00:00
rstiskalek
88e2132232 update README 2022-10-30 20:23:35 +00:00
rstiskalek
09ce7b4b5e Update TODO 2022-10-30 20:21:48 +00:00
Richard Stiskalek
8a56c22813
Within halo work and NFW fit (#4)
* add listing of snapshots

* change distance to comoving

* ignore cp files

* rename nb

* add str to list

* add NFW profile shapes

* add fits imports

* Rename to Nsnap

* in clumps_read only select props

* make clumpid int

* expand doc

* add import

* edit readme

* distribute halos

* add profile & posterior

* add import

* add import

* add documentation

* add rvs and init guess

* update todo

* update nb

* add file

* return end index too

* change clump_ids format to int32

* skeleton of dump particle

* update nb

* add func to drop 0 clump indxs parts

* add import

* add halo dump

* switch to float32

* Update TODO

* update TODO

* add func that loads a split

* add halo object

* Rename to clump

* make post work with a clump

* add optimiser

* add Nsplits

* ignore submission scripts

* ignore .out

* add dumppath

* add job splitting

* add split halos script

* rename file

* renaem files

* rm file

* rename imports

* edit desc

* add pick clump

* add number of particles

* update TODO

* update todo

* add script

* add dumping

* change dumpdir structure

* change dumpdir

* add import

* Remove tqdm

* Increase the number of splits

* rm shuffle option

* Change to remove split

* add emojis

* fix part counts in splits

* change num of splits

* rm with particle cut

* keep splits

* fit only if 10 part and more

* add min distance

* rm warning about not set vels

* update TODO

* calculate rho0 too

* add results collection

* add import

* add func to combine splits

* update TODO

* add extract cols

* update nb

* update TODO
2022-10-30 20:16:56 +00:00
rstiskalek
85a6a6d58a comment out correlation import 2022-10-21 20:00:30 +01:00
rstiskalek
ba15264eb8 Add docs 2022-10-21 19:58:59 +01:00
rstiskalek
dd34036219 rename 2022-10-21 17:06:29 +01:00
rstiskalek
cef4ad1ae8 Merge branch 'master' of https://github.com/Richard-Sti/galomatch 2022-10-20 23:37:36 +01:00
rstiskalek
a47847cb7c more renaming 2022-10-20 23:37:33 +01:00
rstiskalek
a9e98f5a2d Rename repo 2022-10-20 23:34:14 +01:00
Richard Stiskalek
0a73256fe3
Update README.md 2022-10-20 23:31:19 +01:00
Richard Stiskalek
942c36b142
Box units conversion (#3)
* linting

* fix long line

* rename nb

* rename import

* add group catalog

* move imports out of functions

* add array_to_structured

* add references

* fix subsampling

* fix coord bug

* add 2M++ dists

* save nb

* fix comment

* add snapshot path

* add snapshot path

* add read_info

* Move transforms

* add import radec

* expand docs

* Move flipcols

* update nb

* add flip_cols

* create file

* add blank line

* Move units transfs

* add blank line

* add units import

* rm imports

* add import

* add box_units

* add comments
2022-10-20 23:28:44 +01:00
rstiskalek
c7665b8136 linting 2022-10-20 08:15:34 +01:00
rstiskalek
26c9946977 comments 2022-10-20 08:13:26 +01:00
rstiskalek
b7b4353487 ignore settings 2022-10-20 08:13:09 +01:00
Richard Stiskalek
c7801dc100
Update README.md 2022-10-20 07:28:07 +01:00
Richard Stiskalek
53a0629d90
Basic matching (#2)
* add recarray manipulations

* add cart to radec

* add behav so x can be a list

* add import

* create empty files

* ignore plots file

* add planck data

* add read_mmain file

* add cols_to_structured import

* use cols_to_structured

* add cols_to_structued

* add read_mmain import

* add reading planck

* add mass conversion

* add brute force separation calculation

* update nb

* rename & int dtype

* add func to get csiborg ids

* add list to nd array conversion

* add utils

* rename file

* add 2M++

* add read 2mpp

* add 2mpp shortcut

* add randoms generator

* Change range of RA [0, 360]

* fix ang wrapping

* add code for sphere 2pcf

* rm wrapping

* optionally load only a few borgs

* update nb
2022-10-18 19:41:20 +01:00
rstiskalek
d2c1f3294a zero centre by default 2022-10-12 12:06:03 +01:00
rstiskalek
b3c7d687b7 add columns flip 2022-10-12 11:47:11 +01:00
rstiskalek
e97609da05 add .gitattrib 2022-10-11 16:43:18 +01:00
Richard Stiskalek
7b3f6a3114
Merge pull request #1 from Richard-Sti/basics
Basic IO
2022-10-11 16:35:54 +01:00
rstiskalek
4d24895d2f update nb 2022-10-11 16:35:21 +01:00
rstiskalek
1e169d1424 add little h conversion 2022-10-11 16:32:23 +01:00
rstiskalek
7dada67492 add licencee 2022-10-11 16:24:51 +01:00
rstiskalek
c24842baf1 add mass and position conversions 2022-10-11 16:22:53 +01:00
rstiskalek
0876716719 add readclumps func 2022-10-11 16:00:04 +01:00
rstiskalek
07a7e41078 rename int dtype 2022-10-11 15:47:07 +01:00
rstiskalek
6183b9d6b9 add read clump ids 2022-10-11 15:32:03 +01:00
rstiskalek
edb9ee430c ignore checkpoints 2022-10-11 13:47:26 +01:00
rstiskalek
f8756059d0 fix mass dtypev2 2022-10-11 13:46:57 +01:00
rstiskalek
c0947c8a4a fix mass dtype 2022-10-11 13:34:59 +01:00
rstiskalek
075536b839 add nparts_to_start_ind func 2022-10-10 18:08:49 +01:00
rstiskalek
b119d21acf add read particle file 2022-10-10 17:42:11 +01:00
rstiskalek
016be32634 add imports 2022-10-10 17:41:41 +01:00
rstiskalek
8290e56ceb ignore *.pyc 2022-10-10 17:41:29 +01:00
rstiskalek
5043915fdc start cleaning readsim 2022-10-02 11:18:30 +01:00
rstiskalek
54221a8ff5 first commit 2022-10-02 11:12:45 +01:00
Richard Stiskalek
ca5c465cf5
Create README.md 2022-09-29 14:45:59 +01:00
rstiskalek
b9b1ae6963 init commit 2022-09-29 14:41:02 +01:00