Panellets are a traditional sweet from the Catalan countries. They are typically eaten during these days of october, specially the 31st of october and the day after, when we celebrate the "castanyada", which would be the equivalent of All Saints night or Halloween, Magosto or the celtic (also celebrated here in Ireland) samhain. It seems they were made to be eaten for the All Saints night, when everybody joined to pray for their died relatives and friends. It used to be a cold night, so they prepared high calorie meals to fight against the low temperatures.
Panellets, as well as chestnuts and sweet potatoes, were the main protagonists of the day. Nowadays, Halloween has also arrived to Catalan countries, and it is a cultural fight to avoid the disappearance of the typical "castanyada". If you visit Barcelona these days, you will find some women selling roasted chestnuts and sweet potatoes on the corners of the main streets. It is a wonderful time there, despite the high temperatures they are having, because the smell of the burning wood fills the streets of the city. And yes, I loved autumn in Barcelona.