MTHM008 / group-exercise-nahum-jonah-oshin

group-exercise-nahum-jonah-oshin created by GitHub Classroom
0 stars 0 forks source link

Issues in models.py #10

Closed nab225 closed 10 months ago

nab225 commented 10 months ago

Description: Running 'flake8' command indicates issues in models.py script. Specifically regarding the formatting of the script, for example amounts of blank spaces and positions of commas.

Steps to reproduce: Running the 'flake8' command on the main branch. Specifically, with the models.py script as:


def SIR(Y, r, a):
    S, I, R = Y
    return [-r*I*S,r*I*S - a*I, a*I]

def Brusselator(Y, a, b):
    x, y = Y
    return np.array([a + x**2*y - b*x -x, b*x - x**2*y])

Expected behaviour: I would expect the command to not produce issues with the models.py script.

Error message: ./source/models.py:3:1: E302 expected 2 blank lines, found 1 ./source/models.py:5:19: E231 missing whitespace after ',' ./source/models.py:7:1: E302 expected 2 blank lines, found 1 ./source/models.py:9:40: E225 missing whitespace around operator

Environment: Python version: 3.10.13 OS: Mac Sonoma 14.0