Skip to content

Instantly share code, notes, and snippets.

@mclavan
Last active July 3, 2022 13:47
Show Gist options
  • Save mclavan/bdf07913446e9af1ad1b20429e217c1b to your computer and use it in GitHub Desktop.
Save mclavan/bdf07913446e9af1ad1b20429e217c1b to your computer and use it in GitHub Desktop.
# Cluster Naming Convention
# SystemName_clusterName_count_suffix
# ctBack_crvClust_01_clust
system_name = 'ctBack'
cluster_name = 'crvClust'
count = 1
suffix = 'clust'
#new_name = system_name + '_' + cluster_name
# python string method format (python format method example)
new_name = '{0}_{1}_{2:02d}_{3}'.format(system_name, cluster_name, count, suffix)
print(new_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment