Open robelgeda opened 4 years ago
dsii_dwarfs/tests/test_simulation.py F [100%] 808 809=================================== FAILURES =================================== 810____________________ test_simulate_psf_fit_dwarf_elliptical ____________________ 811 812 def test_simulate_psf_fit_dwarf_elliptical(): 813 sim = SimulatePSFFitDwarfElliptical() 814> sim.run_all_steps() 815 816dsii_dwarfs/tests/test_simulation.py:5: 817_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 818dsii_dwarfs/simulate_psf_fit_dwarf_elliptical.py:506: in run_all_steps 819 step() 820dsii_dwarfs/simulate_psf_fit_dwarf_elliptical.py:329: in create_stochastic_portion 821 massfunc='kroupa', mmin=self.minmass_stochastic) 822/home/travis/build/robelgeda/dsii_dwarfs/src/imf/imf/imf.py:453: in make_cluster 823 mfc.mmin = mmin 824/home/travis/build/robelgeda/dsii_dwarfs/src/imf/imf/imf.py:131: in mmin 825 self.distr.m1 = value 826/home/travis/build/robelgeda/dsii_dwarfs/src/imf/imf/distributions.py:154: in m1 827 self._calcpows() 828/home/travis/build/robelgeda/dsii_dwarfs/src/imf/imf/distributions.py:171: in _calcpows 829 pows.append(PowerLaw(self.slopes[ii], self.breaks[ii], self.breaks[ii + 1])) 830_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 831 832self = <imf.distributions.PowerLaw object at 0x7f87433a8b10>, slope = -0.3 833m1 = 0.8141192614821318, m2 = 0.08 834 835 def __init__(self, slope, m1, m2): 836 """ Power law with slope slope in the interval m1,m2 """ 837 self.slope = slope 838 self.m1 = float(m1) 839 self.m2 = float(m2) 840> assert (m1 < m2) 841E AssertionError 842 843/home/travis/build/robelgeda/dsii_dwarfs/src/imf/imf/distributions.py:90: AssertionError 844----------------------------- Captured stdout call ----------------------------- 845pick_galaxy 846renormalize_isochrone 847compute_smooth_flux 848create_smooth_portion 849Peak smooth cts/s in g band: 0.0012585011987121635 850Peak smooth cts/s in r band: 0.0013534189607019703 851Peak smooth cts/s in i band: 0.0013138824882756896 852Peak smooth cts/s in z band: 0.0010984265422044166 853Peak smooth cts/s in y band: 0.0012095844859201863 854create_stochastic_portion 855=========================== short test summary info ============================ 856FAILED dsii_dwarfs/tests/test_simulation.py::test_simulate_psf_fit_dwarf_elliptical 857============================== 1 failed in 12.31s ============================== 858The command "$MAIN_CMD $SETUP_CMD" exited with 1.
related to https://github.com/keflavich/imf/issues/18