minor changes
This commit is contained in:
@@ -239,7 +239,7 @@ func next_patient() -> Dictionary: #Decides next patient ID
|
||||
_:
|
||||
next_type = next_patient_type()
|
||||
next_id = generate_next_id(next_type)
|
||||
print("NEXT SUBJECT CHARACTERISTICS - id: " + next_id, "type: " + next_type)
|
||||
print("NEXT SUBJECT CHARACTERISTICS - ID: " + next_id + ", Type: " + next_type)
|
||||
return {"id": next_id, "type": next_type}
|
||||
|
||||
|
||||
@@ -256,6 +256,7 @@ func next_patient_type():
|
||||
type_list.append("its")
|
||||
for i in range(Globals.diagnoses_quota - 1):
|
||||
type_list.append("patient")
|
||||
print("Type List generated: " + str(type_list))
|
||||
next_type = type_list.pick_random()
|
||||
print("Next subject type picked: " + str(next_type))
|
||||
return next_type
|
||||
@@ -264,8 +265,11 @@ func next_patient_type():
|
||||
type_list.append("its")
|
||||
if len(entities_current_floor) > 0:
|
||||
type_list.append("entity")
|
||||
if len(its_list) > 0:
|
||||
type_list.append("its")
|
||||
for i in range(int(floor(Globals.diagnoses_quota/2))):
|
||||
type_list.append("patient")
|
||||
print("Type List generated: " + str(type_list))
|
||||
next_type = type_list.pick_random()
|
||||
print("Next subject type picked: " + str(next_type))
|
||||
return next_type
|
||||
@@ -284,8 +288,7 @@ func update_list():
|
||||
print("Updated Floor " + str(j) + " patient list: " + str(patient_list[j]))
|
||||
"its":
|
||||
its_seen.append(id)
|
||||
if len(its_list)>1:
|
||||
its_list.erase(id)
|
||||
its_list.erase(id)
|
||||
print("Updated ITS list: " + str(its_list))
|
||||
"entity":
|
||||
entities_seen.append(id)
|
||||
|
||||
Reference in New Issue
Block a user