Skip to content

Commit

Permalink
Merge pull request #56 from JudahRockLuberto/main
Browse files Browse the repository at this point in the history
Adding OSError Handling to camb Imports
  • Loading branch information
mirochaj committed Nov 9, 2022
2 parents 92c37ac + 7ee3e0e commit f323300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ares/physics/HaloMassFunction.py
Expand Up @@ -74,7 +74,7 @@
try:
import camb
have_pycamb = True
except ImportError:
except (ImportError, OSError):
have_pycamb = False

try:
Expand Down
2 changes: 1 addition & 1 deletion ares/physics/InitialConditions.py
Expand Up @@ -20,7 +20,7 @@
try:
import camb
have_camb = True
except ImportError:
except (ImportError, OSError):
have_camb = False

_pars_CosmoRec = ['cosmorec_nz', 'cosmorec_z0', 'cosmorec_zf',
Expand Down

0 comments on commit f323300

Please sign in to comment.