Completedly overhauled fig_auditory_pathway.
Created new in-figure linked SVGs with clearer naming scheme. Removed outdated image components.
This commit is contained in:
24
python/solve_post_problem.py
Normal file
24
python/solve_post_problem.py
Normal file
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user