Last active
July 3, 2022 13:47
-
-
Save mclavan/bdf07913446e9af1ad1b20429e217c1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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