subhaloscript 1.0.6__tar.gz → 1.0.7__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 (27) hide show
  1. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/PKG-INFO +1 -1
  2. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/meta.yaml +1 -1
  3. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/pyproject.toml +1 -1
  4. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/external.py +1 -1
  5. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_symphony.py +1 -8
  6. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/.github/workflows/main.yml +0 -0
  7. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/.gitignore +0 -0
  8. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/LICENSE +0 -0
  9. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/README.md +0 -0
  10. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/example-notebooks/basic-usage.ipynb +0 -0
  11. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/defaults.py +0 -0
  12. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/macros.py +0 -0
  13. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/histograms.py +0 -0
  14. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/nfilters.py +0 -0
  15. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/nodes.py +0 -0
  16. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/spatial.py +0 -0
  17. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/tabulatehdf5.py +0 -0
  18. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/util.py +0 -0
  19. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/wrappers.py +0 -0
  20. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_histograms.py +0 -0
  21. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_macros.py +0 -0
  22. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nfilters.py +0 -0
  23. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nfilters_legacy.py +0 -0
  24. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nodes.py +0 -0
  25. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_spatial.py +0 -0
  26. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_tabulatehdf5.py +0 -0
  27. {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_wrappers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: subhaloscript
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Utility functions for analyzing subhalo distributions.
5
5
  Author-email: Charles Gannon <cgannon@ucmerced.edu>
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  package:
2
2
  name: subhaloscript
3
- version: "1.0.6"
3
+ version: "1.0.7"
4
4
 
5
5
  source:
6
6
  path: . # Or use `git_url`/`url` if not building from local files
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  dependencies = ["numpy","pandas","scipy","h5py", "scikit-learn"]
7
7
  name = "subhaloscript"
8
- version = "1.0.6"
8
+ version = "1.0.7"
9
9
  authors = [
10
10
  { name="Charles Gannon", email="cgannon@ucmerced.edu" },
11
11
  ]
@@ -81,7 +81,7 @@ def symphony_to_galacticus_like_dict(sim_data, z_snap, key_map=KEY_MAP_SYMPHONY_
81
81
  out['custom_node_tree'] = tree_index * np.ones(nodecount, dtype=int)
82
82
 
83
83
  # The first halo is the host
84
- out[ParamKeys.is_isolated] = np.ones(nodecount, dtype=int)
84
+ out[ParamKeys.is_isolated] = np.zeros(nodecount, dtype=int)
85
85
  out[ParamKeys.is_isolated][0] = 1
86
86
 
87
87
  return out
@@ -148,7 +148,7 @@ def test_symphony_conversion():
148
148
  1.8082767 , 0.44727923, 2.35697483, 1.44084725, 0.06581332])
149
149
  npt.assert_allclose(out[ParamKeys.z_lastisolated], z_lastisolated_expect)
150
150
 
151
- iso_expect = np.ones(10, dtype=int)
151
+ iso_expect = np.zeros(10, dtype=int)
152
152
  iso_expect[0] = 1
153
153
  npt.assert_allclose(out[ParamKeys.is_isolated], iso_expect)
154
154
 
@@ -158,10 +158,3 @@ def test_symphony_conversion():
158
158
  tree_expect = 2 * np.ones(10, dtype=int)
159
159
  npt.assert_allclose(out['custom_node_tree'], tree_expect)
160
160
 
161
-
162
-
163
-
164
-
165
-
166
- if __name__ == '__main__':
167
- test_symphony_conversion()
File without changes
File without changes
File without changes