Commit 98bc872f authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

Update cosmicrays.py

parent 05965d4e
Pipeline #8491 passed with stage
in 0 seconds
...@@ -202,6 +202,9 @@ class cosmicrays(): ...@@ -202,6 +202,9 @@ class cosmicrays():
cr_n = int(5000 * self.exptime / 565. * coveringFraction) cr_n = int(5000 * self.exptime / 565. * coveringFraction)
if cr_n < 1:
cr_n = 1
covering = 0.0 covering = 0.0
while covering < coveringFraction: while covering < coveringFraction:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment