Skip to content

Commit 39138cb

Browse files
author
Release Manager
committed
gh-39132: fixing pep8 E203 in pyx files fix pycodestyle E203 in pyx files: ```E203 whitespace before ','``` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: #39132 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents c45fb47 + b9f4241 commit 39138cb

File tree

3 files changed

+78
-78
lines changed

3 files changed

+78
-78
lines changed

src/sage/graphs/strongly_regular_db.pyx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,25 +1068,25 @@ def is_polhill(int v, int k, int l, int mu):
10681068
# We now define the P_{i,j}. see section 6.
10691069
10701070
P = {}
1071-
P[0,1] = list(range((-1) + 1 , 2**(s-2)+1))
1072-
P[1,1] = list(range((-1) + 2**(s-2)+2 , 2**(s-1)+1))
1073-
P[2,1] = list(range((-1) + 2**(s-1)+2 , 2**(s-1)+2**(s-2)+1))
1074-
P[3,1] = list(range((-1) + 2**(s-1)+2**(s-2)+2, 2**(s)+1))
1075-
1076-
P[0,2] = list(range((-1) + 2**(s-2)+2 , 2**(s-1)+2))
1077-
P[1,2] = list(range((-1) + 2**(s-1)+3 , 2**(s-1)+2**(s-2)+2))
1078-
P[2,2] = list(range((-1) + 2**(s-1)+2**(s-2)+3, 2**(s)+1)) + [0]
1079-
P[3,2] = list(range((-1) + 2 , 2**(s-2)+1))
1080-
1081-
P[0,3] = list(range((-1) + 2**(s-1)+3 , 2**(s-1)+2**(s-2)+3))
1082-
P[1,3] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [0,1]
1083-
P[2,3] = list(range((-1) + 3 , 2**(s-2)+2))
1084-
P[3,3] = list(range((-1) + 2**(s-2)+3 , 2**(s-1)+2))
1085-
1086-
P[0,4] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1))
1087-
P[1,4] = list(range((-1) + 3 , 2**(s-2)+1)) + [2**(s-1)+1,2**(s-1)+2**(s-2)+2]
1088-
P[2,4] = list(range((-1) + 2**(s-2)+3 , 2**(s-1)+1)) + [2**(s-1)+2**(s-2)+1,1]
1089-
P[3,4] = list(range((-1) + 2**(s-1)+3 , 2**(s-1)+2**(s-2)+1)) + [2**(s-2)+1,0]
1071+
P[0, 1] = list(range((-1) + 1, 2**(s-2)+1))
1072+
P[1, 1] = list(range((-1) + 2**(s-2)+2, 2**(s-1)+1))
1073+
P[2, 1] = list(range((-1) + 2**(s-1)+2, 2**(s-1)+2**(s-2)+1))
1074+
P[3, 1] = list(range((-1) + 2**(s-1)+2**(s-2)+2, 2**(s)+1))
1075+
1076+
P[0, 2] = list(range((-1) + 2**(s-2)+2, 2**(s-1)+2))
1077+
P[1, 2] = list(range((-1) + 2**(s-1)+3, 2**(s-1)+2**(s-2)+2))
1078+
P[2, 2] = list(range((-1) + 2**(s-1)+2**(s-2)+3, 2**(s)+1)) + [0]
1079+
P[3, 2] = list(range((-1) + 2, 2**(s-2)+1))
1080+
1081+
P[0, 3] = list(range((-1) + 2**(s-1)+3, 2**(s-1)+2**(s-2)+3))
1082+
P[1, 3] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [0,1]
1083+
P[2, 3] = list(range((-1) + 3, 2**(s-2)+2))
1084+
P[3, 3] = list(range((-1) + 2**(s-2)+3, 2**(s-1)+2))
1085+
1086+
P[0, 4] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1))
1087+
P[1, 4] = list(range((-1) + 3, 2**(s-2)+1)) + [2**(s-1)+1,2**(s-1)+2**(s-2)+2]
1088+
P[2, 4] = list(range((-1) + 2**(s-2)+3, 2**(s-1)+1)) + [2**(s-1)+2**(s-2)+1,1]
1089+
P[3, 4] = list(range((-1) + 2**(s-1)+3, 2**(s-1)+2**(s-2)+1)) + [2**(s-2)+1,0]
10901090
10911091
R = {x: copy(P[x]) for x in P}
10921092
@@ -1100,10 +1100,10 @@ def is_polhill(int v, int k, int l, int mu):
11001100
11011101
# We now define the R_{i,j}. see *end* of section 6.
11021102
1103-
R[0,3] = list(range((-1) + 2**(s-1)+3 , 2**(s-1)+2**(s-2)+2))
1104-
R[1,3] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [0,1,2**(s-1)+2**(s-2)+2]
1105-
R[0,4] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [2**(s-1)+2**(s-2)+2]
1106-
R[1,4] = list(range((-1) + 3 , 2**(s-2)+1)) + [2**(s-1)+1]
1103+
R[0, 3] = list(range((-1) + 2**(s-1)+3, 2**(s-1)+2**(s-2)+2))
1104+
R[1, 3] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [0,1,2**(s-1)+2**(s-2)+2]
1105+
R[0, 4] = list(range((-1) + 2**(s-1)+2**(s-2)+4, 2**(s)+1)) + [2**(s-1)+2**(s-2)+2]
1106+
R[1, 4] = list(range((-1) + 3, 2**(s-2)+1)) + [2**(s-1)+1]
11071107
11081108
for x in R:
11091109
R[x] = [K[i] for i in R[x]]

src/sage/numerical/backends/glpk_backend.pyx

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3197,60 +3197,60 @@ solver_parameter_values = {
31973197
'intopt_only': intopt_only,
31983198
'exact_simplex_only': exact_simplex_only,
31993199

3200-
'GLP_MSG_OFF' : GLP_MSG_OFF,
3201-
'GLP_MSG_ON' : GLP_MSG_ON,
3202-
'GLP_MSG_ERR' : GLP_MSG_ERR,
3203-
'GLP_MSG_ALL' : GLP_MSG_ALL,
3204-
'GLP_MSG_DBG' : GLP_MSG_DBG,
3205-
3206-
'GLP_PRIMAL' : GLP_PRIMAL,
3207-
'GLP_DUAL' : GLP_DUAL,
3208-
'GLP_DUALP' : GLP_DUALP,
3209-
3210-
'GLP_PT_STD' : GLP_PT_STD,
3211-
'GLP_PT_PSE' : GLP_PT_PSE,
3212-
3213-
'GLP_RT_STD' : GLP_RT_STD,
3214-
'GLP_RT_HAR' : GLP_RT_HAR,
3215-
3216-
'DBL_MAX' : DBL_MAX,
3217-
'INT_MAX' : INT_MAX,
3218-
3219-
'GLP_ON' : GLP_ON,
3220-
'GLP_OFF' : GLP_OFF,
3221-
3222-
'GLP_BR_FFV' : GLP_BR_FFV,
3223-
'GLP_BR_LFV' : GLP_BR_LFV,
3224-
'GLP_BR_MFV' : GLP_BR_MFV,
3225-
'GLP_BR_DTH' : GLP_BR_DTH,
3226-
'GLP_BR_PCH' : GLP_BR_PCH,
3227-
3228-
'GLP_BT_DFS' : GLP_BT_DFS,
3229-
'GLP_BT_BFS' : GLP_BT_BFS,
3230-
'GLP_BT_BLB' : GLP_BT_BLB,
3231-
'GLP_BT_BPH' : GLP_BT_BPH,
3232-
3233-
'GLP_PP_NONE' : GLP_PP_NONE,
3234-
'GLP_PP_ROOT' : GLP_PP_ROOT,
3235-
'GLP_PP_ALL' : GLP_PP_ALL,
3236-
3237-
'GLP_MAX' : GLP_MAX,
3238-
'GLP_MIN' : GLP_MIN,
3239-
'GLP_UP' : GLP_UP,
3240-
'GLP_FR' : GLP_FR,
3241-
'GLP_DB' : GLP_DB,
3242-
'GLP_FX' : GLP_FX,
3243-
'GLP_LO' : GLP_LO,
3244-
'GLP_CV' : GLP_CV,
3245-
'GLP_IV' : GLP_IV,
3246-
'GLP_BV' : GLP_BV,
3247-
'GLP_MPS_DECK' : GLP_MPS_DECK,
3248-
'GLP_MPS_FILE' : GLP_MPS_FILE,
3249-
3250-
'GLP_UNDEF' : GLP_UNDEF,
3251-
'GLP_OPT' : GLP_OPT,
3252-
'GLP_FEAS' : GLP_FEAS,
3253-
'GLP_NOFEAS' : GLP_NOFEAS
3200+
'GLP_MSG_OFF': GLP_MSG_OFF,
3201+
'GLP_MSG_ON': GLP_MSG_ON,
3202+
'GLP_MSG_ERR': GLP_MSG_ERR,
3203+
'GLP_MSG_ALL': GLP_MSG_ALL,
3204+
'GLP_MSG_DBG': GLP_MSG_DBG,
3205+
3206+
'GLP_PRIMAL': GLP_PRIMAL,
3207+
'GLP_DUAL': GLP_DUAL,
3208+
'GLP_DUALP': GLP_DUALP,
3209+
3210+
'GLP_PT_STD': GLP_PT_STD,
3211+
'GLP_PT_PSE': GLP_PT_PSE,
3212+
3213+
'GLP_RT_STD': GLP_RT_STD,
3214+
'GLP_RT_HAR': GLP_RT_HAR,
3215+
3216+
'DBL_MAX': DBL_MAX,
3217+
'INT_MAX': INT_MAX,
3218+
3219+
'GLP_ON': GLP_ON,
3220+
'GLP_OFF': GLP_OFF,
3221+
3222+
'GLP_BR_FFV': GLP_BR_FFV,
3223+
'GLP_BR_LFV': GLP_BR_LFV,
3224+
'GLP_BR_MFV': GLP_BR_MFV,
3225+
'GLP_BR_DTH': GLP_BR_DTH,
3226+
'GLP_BR_PCH': GLP_BR_PCH,
3227+
3228+
'GLP_BT_DFS': GLP_BT_DFS,
3229+
'GLP_BT_BFS': GLP_BT_BFS,
3230+
'GLP_BT_BLB': GLP_BT_BLB,
3231+
'GLP_BT_BPH': GLP_BT_BPH,
3232+
3233+
'GLP_PP_NONE': GLP_PP_NONE,
3234+
'GLP_PP_ROOT': GLP_PP_ROOT,
3235+
'GLP_PP_ALL': GLP_PP_ALL,
3236+
3237+
'GLP_MAX': GLP_MAX,
3238+
'GLP_MIN': GLP_MIN,
3239+
'GLP_UP': GLP_UP,
3240+
'GLP_FR': GLP_FR,
3241+
'GLP_DB': GLP_DB,
3242+
'GLP_FX': GLP_FX,
3243+
'GLP_LO': GLP_LO,
3244+
'GLP_CV': GLP_CV,
3245+
'GLP_IV': GLP_IV,
3246+
'GLP_BV': GLP_BV,
3247+
'GLP_MPS_DECK': GLP_MPS_DECK,
3248+
'GLP_MPS_FILE': GLP_MPS_FILE,
3249+
3250+
'GLP_UNDEF': GLP_UNDEF,
3251+
'GLP_OPT': GLP_OPT,
3252+
'GLP_FEAS': GLP_FEAS,
3253+
'GLP_NOFEAS': GLP_NOFEAS
32543254

32553255
}
32563256

src/sage/stats/time_series.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ cdef class TimeSeries:
465465
"""
466466
cdef Py_ssize_t i
467467
cdef TimeSeries t = new_time_series(self._length)
468-
memcpy(t._values, self._values , sizeof(double)*self._length)
468+
memcpy(t._values, self._values, sizeof(double)*self._length)
469469
return t
470470

471471
def __add__(left, right):

0 commit comments

Comments
 (0)