Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Refactor #26

Merged
merged 18 commits into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cge_modeling/_version.py export-subst
17 changes: 0 additions & 17 deletions REQUIREMENTS.txt

This file was deleted.

15 changes: 11 additions & 4 deletions cge_modeling/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import logging

from cge_modeling.base.cge import CGEModel
from cge_modeling.base.primitives import Equation, Parameter, Variable
from cge_modeling.plotting import plot_kateplot, plot_lines
from cge_modeling.pytensorf.rewrites import prod_to_no_zero_prod # noqa: F401
from cge_modeling.base.cge import CGEModel
from cge_modeling.base.build import cge_model, compile_model
from cge_modeling.compile.pytensor_tools import prod_to_no_zero_prod
from cge_modeling.plotting import plot_bar, plot_kateplot, plot_lines
from cge_modeling.tools.output_tools import display_info_as_table, latex_print_equations

from cge_modeling._version import get_versions


_log = logging.getLogger("cge_modeling")
if not logging.root.handlers:
_log.setLevel(logging.INFO)
@@ -14,9 +18,11 @@
_log.addHandler(handler)


__version__ = "0.0.3"
__version__ = get_versions()["version"]

__all__ = [
"cge_model",
"compile_model",
"CGEModel",
"Variable",
"Parameter",
@@ -25,4 +31,5 @@
"display_info_as_table",
"plot_lines",
"plot_kateplot",
"plot_bar",
]
Loading