get_max_generation

biophysics_fitting.optimizer.get_max_generation(db_run)

Returns the index of the next iteration in a database. If the database is empty, it returns -1.

Parameters:
db_run : DataBase

The database.

Returns:

The index of the next iteration. If the database is empty, it returns -1.

Return type:

int