I add here most of the machinery of the thalamo-cortical connection with its respective functions. There is a function called lgn which is basically the draft of the LGN with connections to the cortex, there is a function produce_lgn_spikes wich produces and stores the spike trains from the stimuli after convolution. Furthermore, there is the same function but with an one in the end just as an example of how the mechanism works.

There is also a function that reproduces the results of Troyer figure 1 and another functions that just produces the firing rate output of the convlution in order to test and study it