Skip to content

Commit

Permalink
added kwargs to GalaxyCluster instance definition in preparation for …
Browse files Browse the repository at this point in the history
…re-installing latest CLMM with Caio's added coordinate_system kwargs
  • Loading branch information
cavestruz committed Jul 16, 2024
1 parent 0faa78e commit 1452a3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/test_coordinate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
],
"source": [
"# Create a GalaxyCluster.\n",
"cluster = clmm.GalaxyCluster(\"Name of cluster\", cluster_ra, cluster_dec, cluster_z, galaxies)\n",
"cluster = clmm.GalaxyCluster(\"Name of cluster\", cluster_ra, cluster_dec, cluster_z, galaxies, coordinate_system=\"sky)\n",
"\n",
"# Convert elipticities into shears for the members.\n",
"cluster.compute_tangential_and_cross_components(coordinate_system='sky')\n",
Expand Down Expand Up @@ -256,7 +256,7 @@
"metadata": {},
"outputs": [],
"source": [
"cluster2 = clmm.GalaxyCluster(\"Name of cluster\", cluster_ra, cluster_dec, cluster_z, galaxies)\n",
"cluster2 = clmm.GalaxyCluster(\"Name of cluster\", cluster_ra, cluster_dec, cluster_z, galaxies, coordinate_system=\"pixel\")\n",
"cluster2.compute_tangential_and_cross_components(coordinate_system='pixel')\n",
"print(cluster.galcat.colnames)\n",
"\n",
Expand Down Expand Up @@ -404,7 +404,7 @@
}
],
"source": [
"cluster = clmm.GalaxyCluster(\"Name of cluster\", ra_cl, dec_cl, zl, galaxies)\n",
"cluster = clmm.GalaxyCluster(\"Name of cluster\", ra_cl, dec_cl, zl, galaxies, coordinate_system=\"pixel\")\n",
"\n",
"# Convert elipticities into shears for the members.\n",
"cluster.compute_tangential_and_cross_components(coordinate_system='pixel')\n",
Expand Down Expand Up @@ -576,7 +576,7 @@
"metadata": {},
"outputs": [],
"source": [
"cluster = clmm.GalaxyCluster(\"redmapper\", cl['ra'], cl['dec'], cl['z'], sources)"
"cluster = clmm.GalaxyCluster(\"redmapper\", cl['ra'], cl['dec'], cl['z'], sources, coordinate_system=\"sky\")"
]
},
{
Expand Down

0 comments on commit 1452a3a

Please sign in to comment.