Skip to content

Commit

Permalink
Changed var name for writer
Browse files Browse the repository at this point in the history
Signed-off-by: HUG0-D <[email protected]>
  • Loading branch information
HUG0-D committed Nov 27, 2024
1 parent 9126975 commit 7a095f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cimgen/languages/modernpython/utils/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Writer(BaseModel):
"""

objects: Dict
model_metadata: Dict[str, str] = {}
writer_metadata: Dict[str, str] = {}

def write(
self,
Expand Down Expand Up @@ -61,11 +61,11 @@ def _generate(
:param custom_namespaces: Optional[Dict[str, str]]: {"namespace_prefix": "namespace_uri"}
:return: etree of the profile
"""
model = {"modelingAuthoritySet": "www.sogno.energy"}
model.update(self.model_metadata)
writer_info = {"modelingAuthoritySet": "www.sogno.energy"}
writer_info.update(self.writer_metadata)
fullmodel = {
"id": model_id,
"Model": model,
"Model": writer_info,
}
for uri in profile.uris:
fullmodel["Model"].update({"profile": uri})
Expand Down

0 comments on commit 7a095f3

Please sign in to comment.