nelse003 / exhaustive_search

Testing exhaustive search algorithms for crystallographic occupancy refinement and surrounding problems
0 stars 0 forks source link

Check whether raise warning is valid method #12

Closed nelse003 closed 6 years ago

nelse003 commented 6 years ago

Is this a good way to handle errors? Can it be improved by logging?

get_parameter_from_occupancy_groups(occupancy_groups, parameter_str)

                    raise Warning("Multiple models are present in pdb file. "
                                  "This is not processable with occupancy group selection")
    if parameters == []:
        raise Warning("Parameter may not be recognised,as output list is empty")
nelse003 commented 6 years ago

Added logger