Skip to content

Check the RAM occupied by SOAP calculations #119

Description

@matteobecchi

Stop the calculations if the SOAP array size will be large compared to the available RAM.

Something like

dtype = np.float32  # or np.float64

mem_bytes = n_atoms * n_frames * soap_dim * np.dtype(dtype).itemsize
mem_MB = mem_bytes / 1024**2
mem_GB = mem_bytes / 1024**3

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions