• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Clinical-Genomics / arnold / 7114672788

06 Dec 2023 12:43PM UTC coverage: 0.0%. Remained the same
7114672788

push

github

web-flow
add(bioinfo models) (#49) (patch)

## Added
Adds Bioinfo models to arnold

## Changed
Renamed "Sample" model to "LimsSample" to make a better distinction between LAB and BIOINFO related metrics.
Not sure if this will persist later on or these will me merged in some way.

0 of 190 new or added lines in 18 files covered. (0.0%)

2 existing lines in 1 file now uncovered.

0 of 862 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/arnold/crud/read/plot/format_plot_data.py
1
def format_plot_data(plot_data: list, trend_field):
×
2
    """Function to format raw aggregated time series"""
3
    ordered_plot_data = {"trend_field": [], "month": [], "group": None}
×
4
    for datapoint in plot_data:
×
5
        month = datapoint["_id"]["month"]
×
6
        trend_value = datapoint[trend_field]
×
7
        ordered_plot_data["y"].append(trend_value)
×
8
        ordered_plot_data["x"].append(month)
×
9
        continue
×
10

11
    return [ordered_plot_data]
×
12

13

14
def format_grouped_plot_data(plot_data: list, group_field, trend_field):
×
15
    """Function to format raw grouped aggregated time series"""
16

17
    grouped_plottdata = {}
×
18
    for datapoint in plot_data:
×
19
        group = datapoint["_id"][group_field]
×
20
        month = datapoint["_id"]["month"]
×
21
        trend_value = datapoint[trend_field]
×
22
        if group in grouped_plottdata:
×
23
            grouped_plottdata[group][trend_field].append(trend_value)
×
24
            grouped_plottdata[group]["month"].append(month)
×
25
            continue
×
NEW
26
        grouped_plottdata[group] = {
×
27
            trend_field: [trend_value],
28
            "month": [month],
29
            "group": group,
30
        }
31

32
    return [value for group, value in grouped_plottdata.items()]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc