def main(argv): """Do Stuff""" fn = argv[1] year = int(argv[2]) df = read_cli(fn) df['pcpn_in'] = distance(df['pcpn'].values, 'MM').value('IN') do_qc(fn, df, year)
def main(argv): """Do Stuff""" fn = argv[1] year = int(argv[2]) df = read_cli(fn) df["pcpn_in"] = distance(df["pcpn"].values, "MM").value("IN") do_qc(fn, df, year)
def main(argv): """Do Stuff""" fn = argv[1] year = int(argv[2]) df = read_cli(fn) df['pcpn_in'] = distance(df['pcpn'].values, 'MM').value('IN') do_qc(fn, df, year)
def test_cli(self): df = dep.read_cli(get_path('cli.txt')) self.assertEquals(len(df.index), 4018)
def test_cli(): """read a CLI file please""" df = dep.read_cli(get_path('cli.txt')) assert len(df.index) == 4018
def test_cli_rfactor(): """read a CLI file please""" df = dep.read_cli(get_path("cli.txt"), compute_rfactor=True) assert abs(df["rfactor"].max() - 872.63) < 0.01 assert (df.groupby(df.index.year).sum()["rfactor"].max() - 4276.60) < 0.01
def test_cli(self): """read a CLI file please""" df = dep.read_cli(get_path('cli.txt')) self.assertEquals(len(df.index), 4018)
def test_cli(): """read a CLI file please""" df = dep.read_cli(get_path('cli.txt')) assert len(df.index) == 4018