Skip to content

Commit

Permalink
Add metadata annotation for conversion to stockflow amr
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Jun 27, 2024
1 parent e69a0cd commit c7b45d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mira/modeling/amr/stockflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

__all__ = ["AMRStockFlowModel", "template_model_to_stockflow_json"]

import logging

import sympy

from mira.modeling import Model
from mira.metamodel import *
import logging
from .utils import add_metadata_annotations


logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -193,6 +197,8 @@ def __init__(self, model: Model):
link_id += 1
self.links.append(link_dict)

add_metadata_annotations(self.metadata, model)

def to_json(self):
"""Return a JSON dict structure of the Stock and Flow model."""
return {
Expand Down

0 comments on commit c7b45d6

Please sign in to comment.