Skip to content

Commit

Permalink
Merge branch 'u/danielsf/fix_bug_161107'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsf committed Nov 7, 2016
2 parents a2b8189 + f85a135 commit 5e24864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/desc/twinkles/sprinkler.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def sprinkle(self):
# Randomly choose one the lens systems
# (can decide with or without replacement)
# Sort first to make sure the same choice is made every time
candidates = candidates[np.argsort(candidates['twinklesID'])]
candidates = candidates[np.argsort(candidates['twinklesId'])]
newlens = np.random.choice(candidates)

# Append the lens galaxy
Expand Down
2 changes: 1 addition & 1 deletion utils/createCaches.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ def create_sn_cache(db=None):

if __name__ == "__main__":

create_galaxy_cache(os.path.join(getPackageDir('twinkles'),'data')
create_galaxy_cache(os.path.join(getPackageDir('twinkles'),'data'))
create_star_cache()
create_sn_cache()

0 comments on commit 5e24864

Please sign in to comment.