Utility functions to store and retrieve solution information.
More...
def IMP.em2d.solutions_io.gather_best_solution_results |
( |
|
fns, |
|
|
|
fn_output, |
|
|
|
max_number = 50000 , |
|
|
|
raisef = 0.1 , |
|
|
|
orderby = 'em2d' |
|
) |
| |
- Parameters
-
fns | List of files with databases |
fn_output | The database to create |
max_number | Maximum number of records to keep, sorted according to orderby |
raisef | Ratio of problematic database files tolerated before raising an error. This option is to tolerate some files of the databases being broken because the cluster fails, fill the disks, etc |
orderby | Criterium used to sort the the records NOTE: Makes sure to reorder all column names if neccesary before merging The record for the native solution is only added once (from first file). |
Definition at line 88 of file solutions_io.py.
def IMP.em2d.solutions_io.gather_solution_results |
( |
|
fns, |
|
|
|
fn_output, |
|
|
|
raisef = 0.1 |
|
) |
| |
def IMP.em2d.solutions_io.get_best_solution |
( |
|
fn_database, |
|
|
|
Nth, |
|
|
|
fields = False , |
|
|
|
orderby = False , |
|
|
|
tbl = 'results' |
|
) |
| |
def IMP.em2d.solutions_io.get_fields_string |
( |
|
fields | ) |
|
If there are no fields, return an *, indicating SQL that all the fields are requested
- Parameters
-
- Returns
- a string
Definition at line 244 of file solutions_io.py.