Closed segasai closed 4 years ago
yeah, I broke things. I'll work on this, including ci
I think I've fixed all the bugs I introduced, but I need to do some more work to get travis green again. I'm going to move to a policy of not committing directly to master after this.
Tests pass locally now. Please open a new issue if you encounter anything else... I've been encountering some strange behaviors that are just uncaught typos, but they definitely should have been caught.
There are 4 tests currently failing. I don't think I'll have time to fix them right now. But it's probably a good idea to figure out what's going on. Also it'd be good to set-up travis-ci testing to avoid this.
================================= FAILURES =================================== __ test_mmax[kroupa] ___
massfunc = 'kroupa'
imf/tests/testimf.py:20: AssertionError ----------------------------- Captured stdout call ----------------------------- Total cluster mass is 10000.6 (limit was 10000) ____ test_mmax[salpeter] __
massfunc = 'salpeter'
imf/tests/testimf.py:20: AssertionError ----------------------------- Captured stdout call ----------------------------- Total cluster mass is 9999.38 (limit was 10000) ____ test_mmax[chabrier] __
massfunc = 'chabrier'
imf/tests/test_imf.py:18:
mcluster = 10000, massfunc = 'chabrier', verbose = False, silent = False tolerance = 0.0, stop_criterion = 'nearest', mmax = 1, kwargs = {'mmin': 0.01} expected_mass = -0.03687992251819145
imf/imf.py:451: AssertionError _ test_kroupainverses
imf/tests/test_imf.py:84: AssertionError
=========================== short test summary info ============================ FAILED imf/tests/test_imf.py::test_mmax[kroupa] - assert 101.66580141247158 <= 1 FAILED imf/tests/test_imf.py::test_mmax[salpeter] - assert 94.57976156632255 ... FAILED imf/tests/test_imf.py::test_mmax[chabrier] - AssertionError FAILED imf/tests/test_imf.py::test_kroupa_inverses - AssertionError: assert 0... ============ 4 failed, 82 passed, 49 skipped, 3 warnings in 42.31s =========