Skip to content

Commit 8280a44

Browse files
committed
Linters and default configuration
1 parent f4340d6 commit 8280a44

36 files changed

Lines changed: 972 additions & 583 deletions

.env.example

Lines changed: 26 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DifferentialLab Configuration
1+
# DifferentialLab Configuration - generated by the application
22
# Edit this file or use the Configuration dialog from the main menu.
33

44
# ============================================================================
@@ -9,55 +9,52 @@ UI_BACKGROUND="#181818"
99
UI_FOREGROUND="#CCCCCC"
1010

1111
UI_BUTTON_FG="lime green"
12-
UI_BUTTON_FG_CANCEL="red2"
12+
UI_BUTTON_FG_CANCEL=red2
1313
UI_BUTTON_BG="#1F1F1F"
14-
UI_BUTTON_FG_ACCENT2="yellow"
14+
UI_BUTTON_FG_ACCENT2=yellow
1515

1616
UI_PADDING=8
17-
UI_BUTTON_WIDTH=14
17+
UI_BUTTON_WIDTH=20
1818

19-
UI_FONT_FAMILY="Bahnschrift"
20-
UI_FONT_SIZE=16
19+
UI_FONT_FAMILY=Bahnschrift
20+
UI_FONT_SIZE=20
2121

2222
# ============================================================================
2323
# PLOT STYLE CONFIGURATION
2424
# ============================================================================
2525

26-
PLOT_FIGSIZE_WIDTH=12
26+
PLOT_FIGSIZE_WIDTH=8
2727
PLOT_FIGSIZE_HEIGHT=6
2828
DPI=100
2929

30-
PLOT_SHOW_TITLE=true
31-
PLOT_SHOW_GRID=true
30+
PLOT_SHOW_TITLE=false
31+
PLOT_SHOW_GRID=false
3232

3333
# Line properties for solution curve
34-
PLOT_LINE_COLOR="royalblue"
35-
PLOT_LINE_WIDTH=1.50
36-
PLOT_LINE_STYLE="-"
34+
PLOT_LINE_COLOR=black
35+
PLOT_LINE_WIDTH=1.5
36+
PLOT_LINE_STYLE=-
3737
# Line style options: - (solid), -- (dashed), -. (dash-dot), : (dotted)
3838

39-
# Colormap for additional derivatives (Set1, Set2, tab10, Paired, etc.)
40-
PLOT_COLOR_SCHEME="Set1"
41-
4239
# Marker properties (used when showing evaluation points)
43-
PLOT_MARKER_FORMAT="o"
40+
PLOT_MARKER_FORMAT=o
4441
# Marker options: o (circle), s (square), ^ (triangle), d (diamond), * (star)
4542
PLOT_MARKER_SIZE=3
46-
PLOT_MARKER_FACE_COLOR="crimson"
47-
PLOT_MARKER_EDGE_COLOR="crimson"
43+
PLOT_MARKER_FACE_COLOR=crimson
44+
PLOT_MARKER_EDGE_COLOR=crimson
4845

4946
# ============================================================================
5047
# FONT CONFIGURATION FOR PLOTS
5148
# ============================================================================
5249

53-
FONT_FAMILY="serif"
50+
FONT_FAMILY=serif
5451
# Options: serif, sans-serif, monospace, cursive, fantasy
5552

56-
FONT_TITLE_SIZE="xx-large"
57-
FONT_TITLE_WEIGHT="semibold"
53+
FONT_TITLE_SIZE=xx-large
54+
FONT_TITLE_WEIGHT=semibold
5855

5956
FONT_AXIS_SIZE=16
60-
FONT_AXIS_STYLE="italic"
57+
FONT_AXIS_STYLE=italic
6158

6259
FONT_TICK_SIZE=12
6360

@@ -67,24 +64,24 @@ FONT_TICK_SIZE=12
6764

6865
# Default integration method
6966
# Options: RK45, RK23, DOP853, Radau, BDF, LSODA
70-
SOLVER_DEFAULT_METHOD="RK45"
67+
SOLVER_DEFAULT_METHOD=RK45
7168

7269
# Maximum step size (0 = automatic)
73-
SOLVER_MAX_STEP=0
70+
SOLVER_MAX_STEP=0.0
7471

7572
# Relative and absolute tolerances
76-
SOLVER_RTOL=1e-8
73+
SOLVER_RTOL=1e-08
7774
SOLVER_ATOL=1e-10
7875

7976
# Default number of evaluation points in the grid
80-
SOLVER_NUM_POINTS=1000
77+
SOLVER_NUM_POINTS=100000
8178

8279
# ============================================================================
8380
# FILE PATH CONFIGURATION
8481
# ============================================================================
8582

86-
FILE_OUTPUT_DIR="output"
87-
FILE_PLOT_FORMAT="png"
83+
FILE_OUTPUT_DIR=output
84+
FILE_PLOT_FORMAT=png
8885
# Plot output format: png, jpg, pdf
8986

9087
# ============================================================================
@@ -95,25 +92,4 @@ LOG_LEVEL=INFO
9592
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
9693

9794
LOG_FILE=differential_lab.log
98-
LOG_CONSOLE=false
99-
100-
# ============================================================================
101-
# UPDATE CHECK
102-
# ============================================================================
103-
# Check for updates on startup (once per week)
104-
CHECK_UPDATES=true
105-
# Force update check on every startup (ignore weekly interval)
106-
# CHECK_UPDATES_FORCE=false
107-
# Custom URL for version check (default: DifferentialLab main branch pyproject.toml)
108-
# UPDATE_CHECK_URL=https://raw.githubusercontent.com/DOKOS-TAYOS/DifferentialLab/main/pyproject.toml
109-
110-
# ============================================================================
111-
# COLOR REFERENCE
112-
# ============================================================================
113-
# Basic: white, black, red, green, blue, yellow, cyan, magenta
114-
# Extended: orange, purple, pink, brown, gray, lime, teal, navy
115-
# Blues: navy, royal blue, midnight blue, sky blue, steel blue
116-
# Greens: lime green, forest green, sea green, dark green, olive
117-
# Reds: crimson, firebrick, dark red, indian red, tomato
118-
# Hex colors: #FF5733
119-
# ============================================================================
95+
LOG_CONSOLE=true

src/config/constants.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,35 @@
2727
LINE_STYLES: Final[tuple[str, ...]] = ("-", "--", "-.", ":")
2828
MARKER_FORMATS: Final[tuple[str, ...]] = ("o", "s", "^", "d", "*")
2929
FONT_FAMILIES: Final[tuple[str, ...]] = (
30-
"serif", "sans-serif", "monospace", "cursive", "fantasy",
30+
"serif",
31+
"sans-serif",
32+
"monospace",
33+
"cursive",
34+
"fantasy",
3135
)
3236
FONT_SIZES: Final[tuple[str, ...]] = (
33-
"xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large",
37+
"xx-small",
38+
"x-small",
39+
"small",
40+
"medium",
41+
"large",
42+
"x-large",
43+
"xx-large",
3444
)
3545
FONT_WEIGHTS: Final[tuple[str, ...]] = (
36-
"normal", "bold", "light", "semibold", "heavy",
46+
"normal",
47+
"bold",
48+
"light",
49+
"semibold",
50+
"heavy",
3751
)
3852
FONT_STYLES: Final[tuple[str, ...]] = ("normal", "italic", "oblique")
3953
LOG_LEVELS: Final[tuple[str, ...]] = (
40-
"DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL",
54+
"DEBUG",
55+
"INFO",
56+
"WARNING",
57+
"ERROR",
58+
"CRITICAL",
4159
)
4260

4361
AVAILABLE_STATISTICS: Final[dict[str, str]] = {

src/config/difference_equations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def linear_recurrence_2(
3434
return a * y[1] + b * y[0]
3535

3636

37-
def cobweb_model(
38-
n: int, y: np.ndarray, r: float = 2.5, K: float = 1.0, **kwargs: Any
39-
) -> float:
37+
def cobweb_model(n: int, y: np.ndarray, r: float = 2.5, K: float = 1.0, **kwargs: Any) -> float:
4038
"""y_{n+1} = r * y_n * (1 - y_n/K) — Discrete logistic (Ricker-type)."""
4139
return r * y[0] * (1.0 - y[0] / K)

0 commit comments

Comments
 (0)