paper_2025/python/solve_post_problem.py
j-hartling 0029566861 Completedly overhauled fig_auditory_pathway.
Created new in-figure linked SVGs with clearer naming scheme.
Removed outdated image components.
2026-01-28 16:46:38 +01:00

24 lines
615 B
Python

import numpy as np
# NEURON CIRCUIT (WIDTH):
# total_space = 32
# side_space = 0.5
# n_posts = 5
# MODEL CIRCUIT (WIDTH):
total_space = 48
side_space = 0.5
n_posts = 8
# RUN SOLVER:
post_space = np.arange(1, (total_space - 2 * side_space) // n_posts + 1)
available_space = total_space - 2 * side_space - n_posts * post_space
inter_space = available_space / (n_posts - 1)
remaining_space = available_space % (n_posts - 1)
# REPORT OUTCOMES:
print('\nPost Width - Inter-Post - Remainder:')
for input, output, remainder in zip(post_space, inter_space, remaining_space):
print(input, output, remainder)
print()