SBTi-finance-tool
SBTi-finance-tool copied to clipboard
Indexing Error in temperature_score.calculate
I have tried to run the first notebook (Analysis example) in Jupyter notebook (with the example data). This works for the first few lines up to the temperature_score.calculate function. I tried to run the following code
Unfortunately this ends up with an indexing error because of the portfolio input argument
Since the error runs quite deep I have no clue what is going wrong here and whether I can change anything or it is a bug in the code.
Hi JPiree, Thanks for opening this issue. The notebooks are all automatically tested at each commit so no signs for bugs or ambiguities from our side. If you run the notebook in Colab all just runs fine.
If you did not touched the notebook code or the data it can be a compatibility issue. We recommend using the environment.yml in the example folder to set up a conda environment. Check this documentation for more guidance on this.
Let us know if this caused the issue
Hi Joris,
I have already worked in Colab and that worked fine. However, when I want to work with my own data I strongly prefer to run the code locally. I have tried using the environment.yml in the example folder by following the line “conda env create -f environment.yml activate sbti_getting_started jupyter notebook” in my Anaconda3. Unfortunately sbti_getting_started is not being recognized. Do you have any idea what might be the reason for this?
a.s.r. vermogensbeheer Joris Pirée Stagiair +31 6 23 29 55 68 www.asrvermogensbeheer.nlhttps://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asrvermogensbeheer.nl%2F&data=02%7C01%7Cjoris.piree%40asr.nl%7Cd14600a7ed674b18cdd808d8598658fe%7C092ed8ead21743afbb33abd3c252103c%7C0%7C0%7C637357781129133593&sdata=JvFQxuSvih7SUBm%2BQBe6L%2FBWapL5nXikReg2jkt6llA%3D&reserved=0
[cid:[email protected]]
Van: Joris Cramwinckel [email protected] Verzonden: vrijdag 13 november 2020 13:22 Aan: OFBDABV/SBTi [email protected] CC: Piree J. (Joris) [email protected]; Author [email protected] Onderwerp: EXT: Re: [OFBDABV/SBTi] Indexing Error in temperature_score.calculate (#249)
Deze mail komt van buiten a.s.r. Help mee om a.s.r. veilig te houden en denk na voordat je op een link klikt.
Hi JPiree, Thanks for opening this issue. The notebooks are all automatically tested at each commit so no signs for bugs or ambiguities from our side. If you run the notebook in Colab https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcolab.research.google.com%2Fgithub%2FOFBDABV%2FSBTi%2Fblob%2Fmaster%2Fexamples%2F1_analysis_example.ipynb&data=04%7C01%7Cjoris.piree%40asr.nl%7C59b0212f25e54933cd8808d887ceab0a%7C092ed8ead21743afbb33abd3c252103c%7C0%7C0%7C637408668998934863%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=n40B941oW9CK0GSuep3R8CvDPk%2Fgvpmf6HkX%2B3gHO2Q%3D&reserved=0 all just runs fine.
If you did not touched the notebook code or the data it can be a compatibility issue. We recommend using the environment.yml in the example folder to set up a conda environment. Check this documentationhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fofbdabv.github.io%2FSBTi%2Fgetting_started.html%23jupyter-notebooks&data=04%7C01%7Cjoris.piree%40asr.nl%7C59b0212f25e54933cd8808d887ceab0a%7C092ed8ead21743afbb33abd3c252103c%7C0%7C0%7C637408668998944861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=edxmRp1ixoFjbwELZzL3Do5At7VzRNaaIA5NtuASxCk%3D&reserved=0 for more guidance on this.
Let us know if this caused the issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOFBDABV%2FSBTi%2Fissues%2F249%23issuecomment-726735106&data=04%7C01%7Cjoris.piree%40asr.nl%7C59b0212f25e54933cd8808d887ceab0a%7C092ed8ead21743afbb33abd3c252103c%7C0%7C0%7C637408668998944861%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wsY4sDBhAbNnkXPB6adue0Apsrs3f3A1Ir5xoJyoGgY%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARW4FAQDOXWNWKFCRQH2ISDSPUQFBANCNFSM4TR5NFDQ&data=04%7C01%7Cjoris.piree%40asr.nl%7C59b0212f25e54933cd8808d887ceab0a%7C092ed8ead21743afbb33abd3c252103c%7C0%7C0%7C637408668998954850%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=p0DrFJpIdSZpaNC90gM5LVMqlWNnvJ3SbWUYwIq3qsk%3D&reserved=0.