Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
fix zoned rectangles to return unimodal
Browse files Browse the repository at this point in the history
related to #31
  • Loading branch information
JackCook authored and JackCook committed Sep 19, 2021
1 parent 8ac598d commit c58506a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gFunctionDatabase/Management/retrieval.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from gFunctionDatabase import General
from . import data_definition
import natsort

import logging

Expand Down Expand Up @@ -152,11 +153,11 @@ def retrieve(self, N, M):
sec_type = self.secondary_type[self.configuration]
if sec_type == 'r':
# sec type reduction
keys = list(reversed(list(content.keys())))
keys = list(reversed(natsort.natsorted(list(content.keys()))))
elif sec_type == 't':
keys = list(content.keys())
keys = natsort.natsorted(list(content.keys()))
elif sec_type == 'pair':
keys = list(content.keys())
keys = natsort.natsorted(list(content.keys()))

for _key in keys:
data[self.configuration + '_' + key + '_' + sec_type +
Expand Down

0 comments on commit c58506a

Please # to comment.