def setUp(self): cols = [ "MgO", "SiO2", "CaO", "FeO", "Ti", "Hf", "Zr", "H2O", ] + pyrolite.geochem.REE() self.df = test_df(index_length=4, cols=cols) self.df = renormalise(self.df)
def setUp(self): cols = [ "MgO", "SiO2", "CaO", "FeO", "Ti", "Hf", "Zr", "H2O", "Sr87_Sr86", "87Sr/86Sr", "87Sr/86Sri", ] + pyrolite.geochem.REE() self.df = normal_frame(size=4, columns=cols) self.df = renormalise(self.df)
def test_classifer_classify(self): df = self.df df = renormalise(df) cm = Geochemistry.peralkalinity(rebuild=True) df.loc[:, "Peralk"] = cm.classify(df)
def test_classifer_classify(self): df = self.df df = renormalise(df) cm = Geochemistry.TAS(rebuild=True) df.loc[:, "TAS"] = cm.classify(df)