Skip to content

Commit

Permalink
some more refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Nov 21, 2024
1 parent 64f47ef commit 7790ca0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cg_lims/EPPs/files/pooling_map/make_pooling_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def add_pool_info(
round_decimals: Optional[int],
) -> str:
"""Adding info about the pool"""

html: List[str] = []
for udf in pool_udfs:
value = pool.udf.get(udf)
Expand All @@ -46,15 +45,12 @@ def add_pool_info(

def add_sample_info_headers(udfs_headers: List[str]) -> str:
"""Adding headers for more info about samples in the pool"""

html: List[str] = [f'<th style="width: 7%;" class="">{header}</th>' for header in udfs_headers]

return "".join(html)


def add_sample_info(artifact: Artifact, udfs: List[str], round_decimals: Optional[int]) -> str:
"""Adding info about samples in the pool"""

html: List[str] = []
for udf in udfs:
value = artifact.udf.get(udf)
Expand All @@ -72,11 +68,9 @@ def make_html(
round_decimals: Optional[int],
) -> str:
"""Building the html for the pooling map"""

html: List[str] = []
header_info = PlacementMapHeader(process_type=process.type.name, date=date.today().isoformat())
html.append(PLACEMENT_MAP_HEADER.format(**header_info.dict()))

source_containers: Dict[str, str] = {}
for pool in pools:
artifacts: List[Tuple[str, Artifact]] = [
Expand Down Expand Up @@ -116,7 +110,6 @@ def make_html(
)
html.append(SAMPLE_COLUMN_VALUES.format(**sample_table_values.dict()))
html.append("""</tbody></table><br><br></html>""")

return "".join(html)


Expand Down

0 comments on commit 7790ca0

Please sign in to comment.