-
Notifications
You must be signed in to change notification settings - Fork 206
Description
Thank you for such an excellent set of examples.
I managed to get them all running on my machine.
For my set-up I needed to make a couple of minor tweaks. I have recorded them here in case it helps anyone.
I installed Numpy, SciPy, Pandas, Matplotlib, xlrd, Open pyxl, cvx opt, NetworkX and the last version of python 3.6. I ended up downgrading Pandas and Numpy to versions available in early 2019, but I dont know if that was necessary.
Blood, Energy, Dynamic, Static and News repos all worked straight away.
Adapt repo worked once I had deleted the first row in Base parameters.xlsx
Diabetes repo worked once I had:
- added the argument index_col=0 into the Driver Script for the read_excel function for Additional_params and for S0
- In ModelFile, Changed the .loc pandas operation for additional_params.loc['sigma-w',0] by changing 0 to '0'
- Did the same for looking up .loc['truth-type',0] in the ModelFile
- did the same for .loc['increment',0] in the DriverScript
- In Driver Script, I added the line state_names=['M','Sens','Secr','AGI','PA'] into Driver_script and then modified the call to the create an instance of the Model class, changing the first of the four arguments to 'state_names', instead of the reference to the x_names
Asset repo worked once I added argument 'index_col=0 to the read_excel function for biasdf in the DriverScript
Clinical repo worked I had deleted a column in the spreadsheet so that 'Potential_pop':float(data.iat[0,0]) referred correctly.
All just minor pandas or spreadsheet format issues, that I may only have experienced on my old Mac set-up.
I look forward now to continuing to work along in the examples along with the accompanying text, with many thanks to you and to Prof Powell and all those who have developed these examples.