Skip to content

Commit b84df0b

Browse files
committed
Minor: Fixed typo "choosen" -> "chosen"
This is printed many times in the RMG log file
1 parent 25b8472 commit b84df0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rmgpy/rmg/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,7 +2327,7 @@ def calculate_cond(self, obj, Ndims, Ns=20):
23272327
Jout /= tot # normalize Jout
23282328
n = self.rand_state.uniform(0, 1, 1)[0] # draw a random number between 0 and 1
23292329
s = 0.0
2330-
for indexes in np.ndenumerate(Jout): # choose a coordinate such that grid[indexes] is choosen with probability Jout[indexes]
2330+
for indexes in np.ndenumerate(Jout): # choose a coordinate such that grid[indexes] is chosen with probability Jout[indexes]
23312331
s += Jout[indexes[0]]
23322332
if s > n:
23332333
break
@@ -2401,7 +2401,7 @@ def log_conditions(rmg_memories, index):
24012401
log newly generated reactor conditions
24022402
"""
24032403
if rmg_memories[index].get_cond() is not None:
2404-
s = "conditions choosen for reactor {0} were: ".format(index)
2404+
s = f"conditions chosen for reactor {index} were: "
24052405
for key, item in rmg_memories[index].get_cond().items():
24062406
if key == "T":
24072407
s += "T = {0} K, ".format(item)

0 commit comments

Comments
 (0)