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.
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/PKG-INFO +1 -1
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/meta.yaml +1 -1
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/pyproject.toml +1 -1
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/external.py +1 -1
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_symphony.py +1 -8
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/.github/workflows/main.yml +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/.gitignore +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/LICENSE +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/README.md +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/example-notebooks/basic-usage.ipynb +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/defaults.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/macros.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/histograms.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/nfilters.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/nodes.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/scripts/spatial.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/tabulatehdf5.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/util.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/subscript/wrappers.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_histograms.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_macros.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nfilters.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nfilters_legacy.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_nodes.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_spatial.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_tabulatehdf5.py +0 -0
- {subhaloscript-1.0.6 → subhaloscript-1.0.7}/tests/test_wrappers.py +0 -0
|
@@ -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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|