suny-downstate-medical-center / netpyne

A Python package to facilitate the development, parallel simulation, optimization and analysis of multiscale biological neuronal networks in NEURON.
http://www.netpyne.org
MIT License
142 stars 134 forks source link

Pandas deprecated parameter fix + Loading Bar #813

Closed RomanB22 closed 2 months ago

RomanB22 commented 3 months ago

-- The inplace=True keyword was removed from newer Pandas versions, thus the inplace option is replaced by re-assigning the variable, following Pandas recs (https://github.com/pandas-dev/pandas/issues/57104) Changing df['popInd'].cat.set_categories(sim.net.pops.keys(), inplace=True) by df['popInd'] = df['popInd'].cat.set_categories(sim.net.pops.keys()) in analysis/spikes.py

-- Adding loading bar for cell and connectivity creation using tqdm package