Construct a HumanData instance from an npz file. Args: npz_path (str): Path to a dumped npz file. Returns: HumanData: A HumanData instance load from file.
(cls, npz_path: str)
| 160 | |
| 161 | @classmethod |
| 162 | def fromfile(cls, npz_path: str) -> _HumanData: |
| 163 | """Construct a HumanData instance from an npz file. |
| 164 | |
| 165 | Args: |
| 166 | npz_path (str): |
| 167 | Path to a dumped npz file. |
| 168 | |
| 169 | Returns: |
| 170 | HumanData: |
| 171 | A HumanData instance load from file. |
| 172 | """ |
| 173 | ret_human_data = cls() |
| 174 | ret_human_data.load(npz_path) |
| 175 | return ret_human_data |
| 176 | |
| 177 | @classmethod |
| 178 | def new(cls, |
no test coverage detected