def find_order_orientationless(self, orientationless_fragment):
     for db_profile in self.profile_db.gats:
         orientationless_db_profile = GATProfile(
             self.verbose, fragments=db_profile.orientationless_fragments())
         if orientationless_db_profile.does_the_profile_match(
                 orientationless_fragment):
             return db_profile.order()
     return 0
Example #2
0
    def calculate_orientationless_order(self):
        orientationless_fragment = GATProfile(
            fragments=self.gat_profile.orientationless_fragments())

        for db_profile in self.profile_db.gats:
            orientationless_db_profile = GATProfile(
                fragments=db_profile.orientationless_fragments())
            if orientationless_db_profile.does_the_profile_match(
                    orientationless_fragment):
                return db_profile.order()
        return 0