mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Added explanatory exception instead of a cryptic error for sample.dataFormat
This commit is contained in:
parent
dcce9c1156
commit
444cd8dad4
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,8 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
|||
dataFileLine = "gadget " + datafile
|
||||
elif sample.dataFormat == "sdf":
|
||||
dataFileLine = "sdf " + datafile
|
||||
else:
|
||||
raise ValueError("unknown dataFormat '%s'" % sample.dataFormat)
|
||||
|
||||
iX = float(sample.mySubvolume[0])
|
||||
iY = float(sample.mySubvolume[1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue