profiles.density.EinastoDensityProfile.from_json#

classmethod EinastoDensityProfile.from_json(filepath: str) BaseProfile#

Reconstruct a profile from a JSON file.

Parameters:

filepath (str) – Path to the JSON file.

Returns:

Reconstructed profile instance.

Return type:

BaseProfile