MGCS-pytools 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/PKG-INFO +1 -1
  2. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/pyproject.toml +1 -1
  3. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/MGCS_pytools.egg-info/PKG-INFO +1 -1
  4. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/statistical_membership/membership.py +5 -2
  5. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/LICENSE +0 -0
  6. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/README.md +0 -0
  7. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/setup.cfg +0 -0
  8. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/MGCS_pytools.egg-info/SOURCES.txt +0 -0
  9. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/MGCS_pytools.egg-info/dependency_links.txt +0 -0
  10. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/MGCS_pytools.egg-info/requires.txt +0 -0
  11. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/MGCS_pytools.egg-info/top_level.txt +0 -0
  12. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/__init__.py +0 -0
  13. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/__init__.py +0 -0
  14. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/bivariate_normal.py +0 -0
  15. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/legacy/multivariate_2d_posterior.py +0 -0
  16. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/mcmc.py +0 -0
  17. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/set_posterior.py +0 -0
  18. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/mcmc/utils.py +0 -0
  19. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/statistical_membership/__init__.py +0 -0
  20. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/statistical_membership/cvt_grid.py +0 -0
  21. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/statistical_membership/dr_correction.py +0 -0
  22. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/statistical_membership/region_tools.py +0 -0
  23. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/utils/__init__.py +0 -0
  24. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/src/mgcs_pytools/utils/plotting.py +0 -0
  25. {mgcs_pytools-0.1.3 → mgcs_pytools-0.1.4}/test/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MGCS_pytools
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A collection of Python tools for data analysis and visualization made for the MGCS HST Treasury program.
5
5
  Author-email: Luca Rosignoli <luca.rosignoli@inaf.it>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "MGCS_pytools"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "A collection of Python tools for data analysis and visualization made for the MGCS HST Treasury program."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MGCS_pytools
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A collection of Python tools for data analysis and visualization made for the MGCS HST Treasury program.
5
5
  Author-email: Luca Rosignoli <luca.rosignoli@inaf.it>
6
6
  License-Expression: MIT
@@ -223,6 +223,7 @@ def do_statistical_membership(
223
223
  df_field_input: DataFrame,
224
224
  field_mag_col: list[str],
225
225
  dr_params: dict[str, str],
226
+ parallel_fov: float,
226
227
  member_threshold: float = 0.8,
227
228
  minstars: int = 200,
228
229
  racol: str = "RA",
@@ -230,7 +231,7 @@ def do_statistical_membership(
230
231
  process_iter: int = 3,
231
232
  min_star_per_cell: int = 3,
232
233
  membership_iter: int = 1000,
233
- fov_ratio: float = 1.0,
234
+ # fov_ratio: float = 1.0,
234
235
  roi: list[float] | None = None,
235
236
  plot_dred: bool = False,
236
237
  plot_voronoi: bool = False,
@@ -251,6 +252,8 @@ def do_statistical_membership(
251
252
  Dictionary containing the names of the columns with the magnitudes
252
253
  to use for the differential reddening correction.
253
254
  Example: {"band1": "F606W", "band2": "F814W"}
255
+ parallel_fov: float
256
+ Size of the parallel FoV in deg square.
254
257
  member_threshold: float, optional
255
258
  Membership threshold to consider a star as a member of the cluster.
256
259
  Default is 0.8.
@@ -314,7 +317,7 @@ def do_statistical_membership(
314
317
  + (df_cluster[deccol].max() - df_cluster[deccol].min()) / 2
315
318
  )
316
319
 
317
- fov_ratio = [subfov.area / instrument_fov.area for subfov in subfovs]
320
+ fov_ratio = [subfov.area / parallel_fov for subfov in subfovs]
318
321
 
319
322
  field_pts = [
320
323
  Point(row[field_mag_col[0]] - row[field_mag_col[1]], row[field_mag_col[0]])
File without changes
File without changes
File without changes
File without changes