FireDynamics / FireDynamics/LectureFireSimulation

fdsreader Module, DEVC data and meta information

未关闭
#50 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
33
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

In the section [fdsreader Module](https://github.com/FireDynamics/LectureFireSimulation/blob/8b1f6f71e2891dc4e33020b688bae29c7c807863/book/content/tools/03_analysis/02_fdsreader.ipynb), I get the following error message with fdsreader `1.2.1`

```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
1 for i in devc:
----> 2 print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.quantity},\t position: {devc[i].position}")

AttributeError: 'Quantity' object has no attribute 'quantity'
```

for

```python
for i in devc:
print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.quantity},\t position: {devc[i].position}")
```

Shouldn't it be?
```python
for i in devc:
print(f"ID: {devc[i].id},\t quantity: {devc[i].quantity.name},\t position: {devc[i].position}")
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

打开 book/content/tools/03_analysis/02_fdsreader.ipynb 并检查 fdsreader Module 部分。使用 fdsreader 1.2.1 运行所示的 DEVC 循环以复现 AttributeError,然后验证修正后的元数据表达式是否能在没有错误的情况下生成预期的量信息。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。