ShellStressResult.from_json

classmethod ShellStressResult.from_json(filepath)[source]

Construct an object of this type from a JSON file.

Parameters:
filepathstr

The path to the JSON file.

Returns:
compas.data.Data

An instance of this object type if the data contained in the file has the correct schema.

Raises:
TypeError

If the data in the file is not a compas.data.Data.