Since return_ranked_list is initiallized to False, calling int(return_ranked_list=False) will set num_to_return to 0, throwing an error when calling alls[0]['structure'], since when return_ranked_list==0, alls is a structure object. Thus include else flag incase num_to_return is 0
Merge branch 'master' of github.com:materialsproject/pymatgen
use joggle in PDAnalyzer.get_chempot_range_map
Merge branch 'master' of github.com:materialsproject/pymatgen
Use scipy for getting facets.
Reformating.
fix bug caused by small simplex determinant in high dimensional phase
diagrams
Refactor and fix bug in PDAnalyzer test.
update SO3/SO2 energies to those fit for  battery safety paper
Merge branch 'master' of github.com:materialsproject/pymatgen
Bug Fix: previously, if {sp:0} was passed to MagOrderingTransformation, the sites would be assigned a fraction of spin +0 and spin -0. When passed to the enumeration code these sites would appear as equivalent (+0 == -0) and the structure would be enumerated and this would result in partial removal of sp. New code exits if the structure is ordered after spin assignment. If ordered, now returns a list containing the ordered structure (with spin assigned to sites) if return_ranked_list is > 1, else returns the structure itself
testcase for zero_spin bug
allow joggle when calling get_facets. Modified the PhaseDiagram facet
threshold
Change default structure in NSCF get_poscar
Merge branch 'master' into surface