def _try_as_phil(self): from iotbx.phil import parse as parse_phil phil_object = parse_phil(file_name=self.file_name, process_includes=True) assert (len(phil_object.objects) > 0), "Empty parameter file." self._file_type = "phil" self._file_object = phil_object
def _try_as_phil (self) : from iotbx.phil import parse as parse_phil phil_object = parse_phil(file_name=self.file_name, process_includes=True) assert (len(phil_object.objects) > 0), "Empty parameter file." self._file_type = "phil" self._file_object = phil_object