# How to save the downloaded data for the function get\_injection\_density?

**URL:** <https://community.brain-map.org/t/how-to-save-the-downloaded-data-for-the-function-get-injection-density/1905>\
**Category:** Technical\
**Tags:** atlas-mouse-brain-adult, atlas-mouse-brain-connectivity, how-to, allensdk\
**Created:** [October 11, 2022, 9:03am UTC](https://community.brain-map.org/t/how-to-save-the-downloaded-data-for-the-function-get-injection-density/1905 "2022-10-11T09:03:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamyCN89](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/samycn89/32/632_2.png) [@SamyCN89](https://community.brain-map.org/u/SamyCN89)\
**Post date:** [October 11, 2022, 9:03am UTC](https://community.brain-map.org/t/how-to-save-the-downloaded-data-for-the-function-get-injection-density/1905/1 "2022-10-11T09:03:55Z")

</div>

Hi,

I was using the function **get\_injection\_density()**, from the module _allensdk.core.mouse\_connectivity\_cache_, and I was seeing that every time it downloaded the data. Also, that exists one option to use the data that was previously downloaded. But I can’t figure out how to activate the option. Anyone could help me? Thanks!

---

<div class="post-metadata">

**Author:** ![lydian](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/lydian/32/174_2.png) [@lydian](https://community.brain-map.org/u/lydian)\
**Post date:** [October 28, 2022, 12:07am UTC](https://community.brain-map.org/t/how-to-save-the-downloaded-data-for-the-function-get-injection-density/1905/2 "2022-10-28T00:07:29Z")

</div>

@SamyCN89

Since this is a specific AllenSDK question, may I suggest that you post your question in the AllenSDK github?

[AllenInstitute/AllenSDK: code for reading and processing Allen Institute for Brain Science data (github.com)](https://github.com/AllenInstitute/AllenSDK)

---

<div class="post-metadata">

**Author:** ![SamyCN89](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/samycn89/32/632_2.png) [@SamyCN89](https://community.brain-map.org/u/SamyCN89)\
**Post date:** [November 2, 2022, 9:34pm UTC](https://community.brain-map.org/t/how-to-save-the-downloaded-data-for-the-function-get-injection-density/1905/3 "2022-11-02T21:34:01Z")

</div>

Thank you @lydian !  
Btw, I solved the problem. There is a argument in the funciton to specify the path of the file (filename=‘string’), in which it will be saved.
