profiles.density.CoredNFWDensityProfile.from_json#

classmethod CoredNFWDensityProfile.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