Commit 31120d4ca6b3cdf72aff30f1f07a275ac87026d1

Authored by Alain Klotz
1 parent 78ec8c2b
Exists in master

add method fonctexts_human

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
src/guitastro/filenames.py
... ... @@ -2882,6 +2882,12 @@ class FileNames(FileNamesException, GuitastroTools):
2882 2882 self.extension = fn.extension
2883 2883 self._context_set("default")
2884 2884  
  2885 + def fcontexts_human(self):
  2886 + text = ""
  2887 + for fcname in self.fcontexts:
  2888 + text += f"{fcname} : {self.fdescription} {self.rootdir}/[{self.pathing()}]/[{self.naming()}]{self.extension}\n"
  2889 + return text
  2890 +
2885 2891 # =============================================
2886 2892 # Managing filenames
2887 2893 # =============================================
... ...