profiles.density.GeneralizedNFWDensityProfile.from_json#

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