Skip to content

Commit

Permalink
fix unicode problem
Browse files Browse the repository at this point in the history
  • Loading branch information
apetri committed Oct 13, 2016
1 parent c52d5fa commit 4687e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenstools/pipeline/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def newCollection(self,box_size=240.0*u.Mpc,nside=512):
def getCollection(self,box_size,nside=None):

#Allow to pass a geometry_id as first argument
if isinstance(box_size,str):
if hasattr(box_size,"format"):
try:
parts = box_size.split("b")
nside = int(parts[0])
Expand Down

0 comments on commit 4687e57

Please sign in to comment.