Skip to content

Commit

Permalink
Fixed position of oNo definition to allow for functional odor_new=False.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nowotny committed Feb 23, 2021
1 parent 1d0304f commit b24dfb9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/exp2.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
# Assume a uniform distribution of Hill coefficients inspired by Rospars'
# work on receptors tiling the space of possible sigmoid responses

hill_new= True
hill_new= False

if hill_new:
hill_exp= np.random.uniform(0.5, 1.5, paras["n_glo"])
Expand All @@ -81,12 +81,11 @@
print(hill_exp)

# Let's do a progression of broadening odours
odor_new= True

odor_new= False
oNo= 30 # how many odors to try
if odor_new:
odors= None
odor_sigma= 0.2
oNo= 30 # how many odors to try
for i in range(oNo):
od= gauss_odor(paras["n_glo"], 80, odor_sigma)
odor_sigma*= 1.2
Expand Down

0 comments on commit b24dfb9

Please sign in to comment.