我试图将一组文件中的数据拟合到模型中,并获得卡方和所有拟合的值。然后我想排序并打印到这些文件的结果。我准备在星表中引入的代码结果
Type = [str(path[-25:-18])]
slope = [poptl_path[0]]
origin = [poptl_path[1]]
exp = [popte_path[0]]
meanlife = [popte_path[1]]
table = Table({'Type': Type, 'Slope': slope, 'Origin': origin, 'Coef
exp':exp, 'Meanlife': meanlife})
ascii.write(table, sys.stdout, delimiter=' ')
table.write(f, format='ascii.basic', delimiter=' ')
但是我收到以下错误消息。
InconsistentTableError: Number of header columns (4) inconsistent with data columns (1) at data line 1
Header values: ['col1', 'col2', 'col3', 'col4']
Data values: ['<html><head>']