Compare View
Commits (2)
-
# Conflicts: # src/guitastro/filenames.py
Showing
1 changed file
Show diff stats
src/guitastro/filenames.py
@@ -2882,10 +2882,19 @@ class FileNames(FileNamesException, GuitastroTools): | @@ -2882,10 +2882,19 @@ class FileNames(FileNamesException, GuitastroTools): | ||
2882 | self.extension = fn.extension | 2882 | self.extension = fn.extension |
2883 | self._context_set("default") | 2883 | self._context_set("default") |
2884 | 2884 | ||
2885 | - def fcontexts_human(self): | 2885 | + def fcontexts_human(self) -> str: |
2886 | + """Return a human reading description of all file contexts. Each file context is described in one line. | ||
2887 | + | ||
2888 | + Returns: | ||
2889 | + | ||
2890 | + Each file context is described in one line. | ||
2891 | + """ | ||
2886 | text = "" | 2892 | text = "" |
2893 | + fcname0 = self.fcontext | ||
2887 | for fcname in self.fcontexts: | 2894 | for fcname in self.fcontexts: |
2895 | + self.fcontext = fcname | ||
2888 | text += f"{fcname} : {self.fdescription} {self.rootdir}/[{self.pathing()}]/[{self.naming()}]{self.extension}\n" | 2896 | text += f"{fcname} : {self.fdescription} {self.rootdir}/[{self.pathing()}]/[{self.naming()}]{self.extension}\n" |
2897 | + self.fcontext = fcname0 | ||
2889 | return text | 2898 | return text |
2890 | 2899 | ||
2891 | # ============================================= | 2900 | # ============================================= |