@@ -16,12 +16,12 @@ class ModelData(SinglefileData):
1616
1717 Parameters
1818 ----------
19- file : Union[ str, Path]
19+ file : str | Path
2020 Absolute path to the file.
2121 architecture : str
2222 Architecture of the mlip model.
23- filename : Optional[ str], optional
24- Name to be used for the file (defaults to the name of provided file) .
23+ filename : str | None
24+ Name to be used for the file. Default is the name of provided file.
2525
2626 Attributes
2727 ----------
@@ -52,7 +52,7 @@ def _calculate_hash(file: str | Path) -> str:
5252
5353 Parameters
5454 ----------
55- file : Union[ str, Path]
55+ file : str | Path
5656 Path to the file for which hash needs to be calculated.
5757
5858 Returns
@@ -81,12 +81,12 @@ def __init__(
8181
8282 Parameters
8383 ----------
84- file : Union[ str, Path]
84+ file : str | Path
8585 Absolute path to the file.
86- architecture : [ str]
86+ architecture : str
8787 Architecture of the mlip model.
88- filename : Optional[ str], optional
89- Name to be used for the file (defaults to the name of provided file) .
88+ filename : str | None
89+ Name to be used for the file. Default is the name of provided file.
9090
9191 Other Parameters
9292 ----------------
@@ -108,12 +108,12 @@ def set_file(
108108
109109 Parameters
110110 ----------
111- file : Union[ str, Path]
111+ file : str | Path
112112 Absolute path to the file.
113- filename : Optional[ str], optional
114- Name to be used for the file (defaults to the name of provided file) .
115- architecture : Optional[ str], optional
116- Architecture of the mlip model.
113+ filename : str | None
114+ Name to be used for the file. Defaults is the name of provided file.
115+ architecture : str | None
116+ Architecture of the mlip model. Default is `None`.
117117
118118 Other Parameters
119119 ----------------
@@ -138,12 +138,12 @@ def from_local(
138138
139139 Parameters
140140 ----------
141- file : Union[ str, Path]
141+ file : str | Path
142142 Path to the file.
143- architecture : [ str]
143+ architecture : str
144144 Architecture of the mlip model.
145- filename : Optional[ str], optional
146- Name to be used for the file (defaults to the name of provided file) .
145+ filename : str | None
146+ Name to be used for the file. Default is the name of provided file.
147147
148148 Returns
149149 -------
@@ -169,16 +169,16 @@ def from_uri(
169169 ----------
170170 uri : str
171171 URI of the file to download.
172- architecture : [ str]
172+ architecture : str
173173 Architecture of the mlip model.
174- filename : Optional[ str], optional
174+ filename : str | None
175175 Name to be used for the file defaults to tmp_file.model.
176- cache_dir : Optional[Union[ str, Path]], optional
177- Path to the folder where the file has to be saved
178- (defaults to "~/.cache/mlips/") .
179- keep_file : Optional[ bool], optional
176+ cache_dir : str | Path | None
177+ Path to the folder where the file has to be saved. Defaults is
178+ "~/.cache/mlips/".
179+ keep_file : bool | None
180180 True to keep the downloaded model, even if there are duplicates.
181- (default: False, the file is deleted and only saved in the database) .
181+ Default is ` False`, so the file is deleted and only saved in the database.
182182
183183 Returns
184184 -------
0 commit comments