@@ -657,7 +657,6 @@ def get_entries(
657657 inc_structure : bool = None ,
658658 property_data : list [str ] = None ,
659659 conventional_unit_cell : bool = False ,
660- sort_by_e_above_hull : bool = False ,
661660 additional_criteria : dict = None ,
662661 ) -> list [ComputedStructureEntry ]:
663662 """Get a list of ComputedEntries or ComputedStructureEntries corresponding
@@ -688,8 +687,6 @@ def get_entries(
688687 input parameters in the 'MPRester.thermo.available_fields' list.
689688 conventional_unit_cell (bool): Whether to get the standard
690689 conventional unit cell
691- sort_by_e_above_hull (bool): Whether to sort the list of entries by
692- e_above_hull in ascending order.
693690 additional_criteria (dict): Any additional criteria to pass. The keys and values should
694691 correspond to proper function inputs to `MPRester.thermo.search`. For instance,
695692 if you are only interested in entries on the convex hull, you could pass
@@ -726,19 +723,11 @@ def get_entries(
726723 else ["entries" , "thermo_type" ] + property_data
727724 )
728725
729- if sort_by_e_above_hull :
730- docs = self .thermo .search (
731- ** input_params , # type: ignore
732- all_fields = False ,
733- fields = fields ,
734- sort_fields = ["energy_above_hull" ],
735- )
736- else :
737- docs = self .thermo .search (
738- ** input_params ,
739- all_fields = False ,
740- fields = fields , # type: ignore
741- )
726+ docs = self .thermo .search (
727+ ** input_params ,
728+ all_fields = False ,
729+ fields = fields , # type: ignore
730+ )
742731
743732 for doc in docs :
744733 entry_list = (
0 commit comments