<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_objects(self, directory_name=None):
 """Load the targets from a file. """

        # for name in Neptune:
        #     self.kbos[name] = Neptune[name]

        if directory_name is not None:
            # defaults to looking at .ast files only
            if directory_name == parameters.REAL_KBO_AST_DIR:
                kbos = parsers.ossos_discoveries(all_objects=True, data_release=None)
            else:
                kbos = parsers.ossos_discoveries(directory_name, all_objects=False, data_release=None)

            for kbo in kbos:
                # if kbo.orbit.arc_length > 30.:  # cull the short ones for now
                self.kbos[kbo.name] = kbo.orbit
                self.kbos[kbo.name].mag = kbo.mag
                # else:
                #     print("Arc very short, large uncertainty. Skipping {} for now.\n".format(kbo.name))

        self.doplot()