Skip to content

Commit

Permalink
a few more tests updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mirochaj committed Sep 16, 2021
1 parent c9c005b commit e9daba9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[![Documentation Status](https://readthedocs.org/projects/ares/badge/?version=latest)](http://ares.readthedocs.io/en/latest/?badge=latest) ![Tests](https://github.com/mirochaj/ares/actions/workflows/test_suite.yaml/badge.svg) [![codecov](https://codecov.io/gh/mirochaj/ares/branch/main/graph/badge.svg?token=18ZMZEUWPW)](https://codecov.io/gh/mirochaj/ares) [![Last Commit](https://img.shields.io/github/last-commit/mirochaj/ares)](https://img.shields.io/github/last-commit/mirochaj/ares)




# **ARES**
The Accelerated Reionization Era Simulations (ARES) code was designed to
rapidly generate models for the global 21-cm signal. It can also be used as a
Expand Down
5 changes: 1 addition & 4 deletions ares/physics/HaloMassFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os, re, sys
import numpy as np
from . import Cosmology
from ..data import PATH
from ..data import ARES
from types import FunctionType
from ..util import ParameterFile
from scipy.misc import derivative
Expand Down Expand Up @@ -81,9 +81,6 @@
except ImportError:
have_pycamb = False

#ARES = os.getenv("ARES")
ARES = PATH[0:PATH.find('ares')] + 'ares'

sqrt2 = np.sqrt(2.)

tiny_fcoll = 1e-18
Expand Down
1 change: 0 additions & 1 deletion tests/test_int_feedback_LW.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import ares
import numpy as np
import matplotlib.pyplot as pl
from ares.physics.Constants import rhodot_cgs

def test():
Expand Down
6 changes: 1 addition & 5 deletions tests/test_physics_secondary_elec.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ def test():
last = np.array(results['exc'][k])
else:
pass

# Just need this to do flya/fexc
results[channel].append(np.array(f3))

# Compare to high-energy limit from Shull
if channel == 'lya':
continue


assert True

if __name__ == '__main__':
Expand Down
3 changes: 1 addition & 2 deletions tests/test_solvers_crte_uvb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import ares
import numpy as np
import matplotlib.pyplot as pl
from ares.physics.Constants import erg_per_ev, c, ev_per_hz, E_LyA

beta = -6.
Expand Down Expand Up @@ -84,7 +83,7 @@ def test(tol=1e-2):
z, E, flux = mgb.get_history(flatten=True)

Jnu_cas = flux[:,k] * E[k] * erg_per_ev


if __name__ == '__main__':
test()

0 comments on commit e9daba9

Please sign in to comment.