Skip to content

Commit

Permalink
fix(output): remove insignificant lines from csv and xlsx output (#451)
Browse files Browse the repository at this point in the history
* Removed irrelevant lines in .csv and .xlsx output

* updated snapshots
  • Loading branch information
DeltaDaniel authored Sep 23, 2024
1 parent 81b3ac0 commit 2456f60
Show file tree
Hide file tree
Showing 2 changed files with 6,997 additions and 11,472 deletions.
3 changes: 2 additions & 1 deletion src/kohlrahbi/unfoldedahb/unfoldedahbtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def convert_to_flat_ahb(self) -> FlatAnwendungshandbuch:
name=unfolded_ahb_line.beschreibung or unfolded_ahb_line.qualifier,
ahb_expression=unfolded_ahb_line.bedingung_ausdruck,
conditions=unfolded_ahb_line.bedingung,
section_name=unfolded_ahb_line.segment_name, # if unfolded_ahb_line.segment else None,
section_name=unfolded_ahb_line.segment_name,
index=unfolded_ahb_line.index,
)
)
Expand Down Expand Up @@ -401,6 +401,7 @@ def convert_to_dataframe(self) -> pd.DataFrame:
"Bedingung": unfolded_ahb_line.bedingung,
}
for unfolded_ahb_line in self.unfolded_ahb_lines
if _line_is_flatahb_line(unfolded_ahb_line)
]

df = pd.DataFrame(unfolded_ahb_lines)
Expand Down
Loading

0 comments on commit 2456f60

Please sign in to comment.