Python package for the Genesis simulations from ASTRO 3D
Documenation is hosted on ReadTheDocs
Python package for ASTRO 3D
License: MIT License
Python package for the Genesis simulations from ASTRO 3D
Documenation is hosted on ReadTheDocs
(Just a note for myself so I can remember)
Looking at the new Genesis tree format, hostHaloID
(the analog for FirstHaloInFOFgroup
) has been changed to be -1 for a FoF Halo. A core assumption in treefrog_to_lhalo.py
is that this instead points to itself. This is causing issues with (at least currently) infinite loops after fixing the flybys.
Will need to check how this assumption propagates through the code and fix it up.
When trying to convert the temporal indices to the tree local ones (function convert_indices
in convert_indices.py
) for the 2048^3
simulation I hit a MemoryError
when calling get_halos_per_forest
from the common.py
module.
Traceback (most recent call last):
File "run_convert_indices.py", line 30, in <module>
ID_fields, index_mult_factor)
File "/home/jseiler/.local/lib/python3.6/site-packages/astro3D-0.0.0.dev2-py3.6.egg/astro3D/genesis/utils/convert_indices.py", line 82, in convert_indices
forestID_field)
File "/home/jseiler/.local/lib/python3.6/site-packages/astro3D-0.0.0.dev2-py3.6.egg/astro3D/genesis/utils/common.py", line 298, in get_halos_per_forest
forests_binned = np.bincount(halo_forestids)
MemoryError
I've added some print
statements and I'm baffled by this error. The arrays that it's using aren't excessive in size. The only thing that could be happening is that the open HDF5 file is chewing up all the RAM? However, I've run this through the queue on OzStar with 200GB of RAM requested and still hit the same issue...
@manodeep : If you have time during the retreat, could you look into this? The dev
branch has all the updated filepaths. You should be able to run these with the scripts in the run_scripts
directory; in particular, the run_convert_indices.py
file.
I ran into this issue previously. In essence, we save the Number of Halos per tree in a header attribute. However, for large simulations the number of trees is extraordinarily large, the datasize of the attribute exceeds the 64kb limit.
Possible solutions are:
Write NHalosPerTree
as a data object instead of an attribute (i.e., make it a group that can be accessed via a key). Will need to investigate the reprecussions of this, the least of which would be to adjust the SAGE
HDF5 reader.
Write to more files so a single file doesn't exceed 64kb. This isn't scalable so probably not the best solution...
For now, I'm just going to write only to a binary file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.