Report 본문에 text 추가하기
용도
basis.text(...)는 basis = report.section(...)으로 받은 Section handle의 메서드입니다. Report section에 사람이 읽는 설명이나 검토 문장을 추가합니다.
Report Workbench에서 보이는 것
Report Workbench에서 section 안에 text block을 삽입하고 내용을 입력하는 작업과 같습니다.
문법
python
basis.text(block_key, text)예제
python
from pipelinexlab import px
report = px.Report("girder_report", title="Girder review")
basis = report.section("design_basis", title="Design basis")
purpose = basis.text(
"purpose",
"Review the governing girder check.",
)매개변수
| 이름 | 설명 |
|---|---|
block_key | Report 전체에서 text block을 계속 찾는 고유 key |
text | Report 본문에 저장할 문자열 |
반환
추가한 text block을 가리키는 handle을 반환합니다.
규칙
block_key는 section이 달라도 같은 Report 안에서 유일하게 정합니다.- text는 작성한 Report 내용이며 Flow input mapping이 필요한 값은 Section handle의
.value()또는.table()로 만듭니다. - text 추가는 계산 Run을 시작하지 않습니다.
- 변경은
report.save()에서 새.pxreportrevision에 저장됩니다.