def test_ignore_with_synonym(pheno_data): model = pharmpy.Model(StringIO(f"$PROBLEM dfs\n$INPUT ID TIME AMT WT APGR DV=CONC FA1 FA2\n" f"$DATA {pheno_data} IGNORE=@ IGNORE=(CONC.EQN.0)")) df = model.dataset assert len(df) == 155 model = pharmpy.Model(StringIO(f"$PROBLEM dfs\n$INPUT ID TIME AMT WT APGR DV=CONC FA1 FA2\n" f"$DATA {pheno_data} IGNORE=@ IGNORE=(DV.EQN.0)")) df = model.dataset assert len(df) == 155
def test_idv_with_synonym(pheno_data): model = pharmpy.Model( StringIO(f"$PROBLEM dfs\n$INPUT ID TIME=TAD AMT WT APGR DV FA1 FA2\n" f"$DATA {pheno_data} IGNORE=@")) df = model.dataset assert df.pharmpy.column_type['TAD'] == ColumnType.IDV
def pheno(pheno_path): model = pharmpy.Model(pheno_path) return model