Commit b9d75047d99420b3e53d7dd5047bdb29e18ff3d9
1 parent
edb06986
Exists in
master
Add naming_keys.
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
src/guitastro/filenames.py
... | ... | @@ -1221,6 +1221,17 @@ class FileNames(FileNamesException, GuitastroTools): |
1221 | 1221 | param['indexes'] = "" |
1222 | 1222 | return param |
1223 | 1223 | |
1224 | + def naming_keys(self) -> list: | |
1225 | + """Return the keys of a file context | |
1226 | + | |
1227 | + Returns: | |
1228 | + Key names. | |
1229 | + | |
1230 | + """ | |
1231 | + wildcard = self.naming_wildcard() | |
1232 | + param = self.naming_get(wildcard) | |
1233 | + return list(param.keys()) | |
1234 | + | |
1224 | 1235 | def naming_wildcard(self, *args: str, **kwargs: int) -> str: |
1225 | 1236 | """Return the wildcard corresponding to the naming rule |
1226 | 1237 | ... | ... |