# Business logic of curiosity behaviour of Child
def curiosity_behavior(Start, End):
for t in range(Start, End+1):
Motivation_item = Motivation_Global[Motivation_Global['Time']==t]
if Motivation_item.size != 0:
Is_Result_Achieved = PDCA_func(Motivation_item)
if Is_Result_Achieved:
print("Result is achieved! Time: ", t)
t = t + 1
print("curiosity_behavior ends.")
Motivation_Global['Time'] is equal to [1] , so basically [1] will never be equal to 1 or 2 or 3 etc. that's why I don't understand this line:
Motivation_item = Motivation_Global[Motivation_Global['Time']==t]
Furthermore, Motivation_Global['Time']==t will return either True or False, but Motivation_Global[True] or Motivation_Global[False]does not exists...
Hi,
From child_ai.py
we have
then
Motivation_Global['Time']
is equal to[1]
, so basically[1]
will never be equal to 1 or 2 or 3 etc. that's why I don't understand this line:Motivation_item = Motivation_Global[Motivation_Global['Time']==t]
Furthermore,
Motivation_Global['Time']==t
will return either True or False, butMotivation_Global[True]
orMotivation_Global[False]
does not exists...Thanks