LWATLINGTON02 / CraterStats-Capstone

Capstone to give CraterStats a new GUI.
MIT License
1 stars 2 forks source link

enhancement: one commandline, map integer to string (e.g., -cs n) #22

Open thareUSGS opened 1 day ago

thareUSGS commented 1 day ago

I love the commandline string at the bottom of the GUI. However, many of the options are locked to using numbers. Can those show their mapped strings?

for example: craterstats -ep 1 would be good to show craterstats -ep moon

or craterstats -cs 5 would be good to show craterstats -cs neukumivanov

This might be easy or could be very tricky. So, consider this an optional enhancement.

CadenTed commented 1 day ago

Possibly easy enhancement. Is there a list of all the abbreviations for the chronology systems? I was unsure on how to write the different abbreviations for the different systems like how to differentiate Moon, Neukum (1983) and Moon, Neukem et. al. (2001)

ggmichael commented 9 hours ago

The chronology system names are taken from functions.txt which are read into the dict f in cli.main (sorry for the 1-letter name! I use them for brief scope variables)

The function decode_abbreviation() in cli.py decodes any abbreviation to an index. You could use this to expand back to the full name.