qmenta-client 3.0.0.dev1528__tar.gz → 3.0.0.dev1529__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/PKG-INFO +1 -1
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/pyproject.toml +1 -1
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/Project.py +25 -22
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/__init__.py +0 -0
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/Account.py +0 -0
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/File.py +0 -0
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/Subject.py +0 -0
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/__init__.py +0 -0
- {qmenta_client-3.0.0.dev1528 → qmenta_client-3.0.0.dev1529}/src/qmenta/client/utils.py +0 -0
|
@@ -656,13 +656,15 @@ class Project:
|
|
|
656
656
|
'change_subject_metadata()' method.
|
|
657
657
|
|
|
658
658
|
Example:
|
|
659
|
-
dictionary {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
659
|
+
dictionary = {
|
|
660
|
+
"param_name":
|
|
661
|
+
{
|
|
662
|
+
"order": Int,
|
|
663
|
+
"tags": [tag1, tag2, ..., ],
|
|
664
|
+
"title": "Title",
|
|
665
|
+
"type": "integer|string|date|list|decimal",
|
|
666
|
+
"visible": 0|1
|
|
667
|
+
}
|
|
666
668
|
}
|
|
667
669
|
|
|
668
670
|
Returns
|
|
@@ -1485,7 +1487,7 @@ class Project:
|
|
|
1485
1487
|
- secret_name: str or None Subject ID
|
|
1486
1488
|
- tags: str or None
|
|
1487
1489
|
- with_child_analysis: 1 or None if 1, child analysis of workflows
|
|
1488
|
-
|
|
1490
|
+
will appear
|
|
1489
1491
|
- id: str or None ID
|
|
1490
1492
|
- state: running, completed, pending, exception or None
|
|
1491
1493
|
- username: str or None
|
|
@@ -1717,7 +1719,7 @@ class Project:
|
|
|
1717
1719
|
- secret_name: str or None Subject ID
|
|
1718
1720
|
- tags: str or None
|
|
1719
1721
|
- with_child_analysis: 1 or None if 1, child analysis of workflows
|
|
1720
|
-
|
|
1722
|
+
will appear
|
|
1721
1723
|
- id: int or None ID
|
|
1722
1724
|
- state: running, completed, pending, exception or None
|
|
1723
1725
|
- username: str or None
|
|
@@ -2462,18 +2464,17 @@ class Project:
|
|
|
2462
2464
|
|
|
2463
2465
|
Returns:
|
|
2464
2466
|
dict: A dictionary containing comprehensive QC statistics
|
|
2465
|
-
including:
|
|
2466
2467
|
- passed_rules: Total count of passed rules across all subjects
|
|
2467
2468
|
- failed_rules: Total count of failed rules across all subjects
|
|
2468
2469
|
- subjects_passed: Count of subjects with no failed rules
|
|
2469
2470
|
- subjects_with_failed: Count of subjects with at least one
|
|
2470
|
-
|
|
2471
|
+
failed rule
|
|
2471
2472
|
- num_passed_files_distribution: Distribution of how many
|
|
2472
|
-
|
|
2473
|
+
rules have N passed files
|
|
2473
2474
|
- file_stats: File-level statistics (total, passed, failed,
|
|
2474
|
-
|
|
2475
|
+
pass percentage)
|
|
2475
2476
|
- condition_failure_rates: Frequency and percentage of each
|
|
2476
|
-
|
|
2477
|
+
failed condition
|
|
2477
2478
|
- rule_success_rates: Success rates for each rule type
|
|
2478
2479
|
|
|
2479
2480
|
The statistics help identify:
|
|
@@ -2610,15 +2611,17 @@ class Project:
|
|
|
2610
2611
|
# Calculate condition failure percentages
|
|
2611
2612
|
for condition in stats["condition_failure_rates"]:
|
|
2612
2613
|
if total_failures > 0:
|
|
2613
|
-
stats["condition_failure_rates"][condition][
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2614
|
+
stats["condition_failure_rates"][condition]["percentage"] = (
|
|
2615
|
+
round(
|
|
2616
|
+
(
|
|
2617
|
+
stats["condition_failure_rates"][condition][
|
|
2618
|
+
"count"
|
|
2619
|
+
]
|
|
2620
|
+
/ total_failures
|
|
2621
|
+
)
|
|
2622
|
+
* 100,
|
|
2623
|
+
2,
|
|
2619
2624
|
)
|
|
2620
|
-
* 100,
|
|
2621
|
-
2,
|
|
2622
2625
|
)
|
|
2623
2626
|
|
|
2624
2627
|
# Calculate rule success rates
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|