Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions casm/project/fit/_FitCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def list(self):
fitting_data = self.get(id)
print(fitting_data)

def get(self, id: str):
def get(self, id: str, use_npz: bool = False):
"""Load fitting data

This constructs an :class:`~casm.project.fit.FittingData`
Expand All @@ -42,13 +42,16 @@ def get(self, id: str):
----------
id : str
The fit identifier
use_npz : bool, optional
If True, prefer loading from fitting_data.npz over fitting_data.json.
If False (default), load from fitting_data.json only.

Returns
-------
fitting_data: FittingData
The fitting data
"""
return FittingData(proj=self.proj, id=id)
return FittingData(proj=self.proj, id=id, use_npz=use_npz)

def remove(self, id: str):
"""Remove fitting data
Expand Down
Loading
Loading