# How can I call FISH function by using "Itasca.fish.call\_function"?

**URL:** <https://forum.itascainternational.com/t/how-can-i-call-fish-function-by-using-itasca-fish-call-function/409>\
**Category:** General\
**Tags:** python\
**Created:** [April 2, 2022, 4:22pm UTC](https://forum.itascainternational.com/t/how-can-i-call-fish-function-by-using-itasca-fish-call-function/409 "2022-04-02T16:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppk](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@ppk](https://forum.itascainternational.com/u/ppk)\
**Post date:** [April 2, 2022, 4:22pm UTC](https://forum.itascainternational.com/t/how-can-i-call-fish-function-by-using-itasca-fish-call-function/409/1 "2022-04-02T16:22:53Z")

</div>

In the Itasca common API, the following function is provided but I cannot find an appropriate example.

# === Itasca FISH module. itasca.fish.call\_function(func: string[,(tuple: any)]) → Any. Call FISH function func return result.

I tried to get mechanical total time by using the Python command as below, but it gives error “FISH symbol is not defined”

mt = Itasca.fish.call\_function(‘mech.time.total’)

---

<div class="post-metadata">

**Author:** ![Huy](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@Huy](https://forum.itascainternational.com/u/Huy)\
**Post date:** [April 3, 2022, 1:00pm UTC](https://forum.itascainternational.com/t/how-can-i-call-fish-function-by-using-itasca-fish-call-function/409/2 "2022-04-03T13:00:26Z")

</div>

It call an user defined fish function. why don’t use it.mech\_age?

---

<div class="post-metadata">

**Author:** ![ppk](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@ppk](https://forum.itascainternational.com/u/ppk)\
**Post date:** [April 4, 2022, 11:19am UTC](https://forum.itascainternational.com/t/how-can-i-call-fish-function-by-using-itasca-fish-call-function/409/3 "2022-04-04T11:19:21Z")

</div>

Thank you for your answer, Huy.

I’ll try it.mech\_age.

Regards.
