Skip to content

Unify QuantEcon.py and QuantEcon.jl APIs? #663

Open

Description

@Smit-create

One of the APIs that differ in julia and python versions is: tauchen.
Julia version is: Doc1
Python version is: Doc2

We can try to unify such APIs that differ in julia and python(like name of function arguments, position of parameters, etc.) which will help the users in migrating from one language to the other easily.

Some of the APIs are:

Activity

  1. jstac commented on Dec 6, 2022

    @jstac
    Contributor

    Yes, that would be great @Smit-create . The tauchen one has always bothered me. This one might need unifying as well:

    http://quantecon.github.io/QuantEcon.jl/latest/api/QuantEcon.html#QuantEcon.rouwenhorst

    The only issue is that these are breaking changes, so we would need to coordinate changes on the lectures and any other downstream code (e.g., the DP textbook).

  2. oyamad commented on Dec 6, 2022

    @oyamad
    Member

    See also #363.

  3. Smit-create commented on Dec 6, 2022

    @Smit-create
    MemberAuthor

    Thanks, @jstac and @oyamad. I have opened a PR to fix the same. Once that is merged in the master, I will then fix the lectures/dp_textbook code.

  4. jstac commented on Dec 6, 2022

    @jstac
    Contributor

    Thanks @Smit-create . The relevant PR is #664 . Is the idea to shift all Python to Julia equivalent?

    @mmcky We will have to be careful with this issue since a number of the QE lectures use tauchen and perhaps rouwenhorst.

  5. Smit-create commented on Dec 13, 2022

    @Smit-create
    MemberAuthor

    Another difference:
    Python: markov_chain_object.P
    Julia: markov_chain_object.p

  6. marcdelabarrera commented on Apr 13, 2023

    @marcdelabarrera

    Can you make the UserWarning to appear only once per session?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions