Skip to content

Commit

Permalink
removed bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Jan 28, 2025
1 parent a3de1a1 commit 7a3c5b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mgraph_ai/providers/json/actions/MGraph__Json__Screenshot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import requests
from dataclasses import asdict
from mgraph_ai.providers.json.actions.MGraph__Json__Export import MGraph__Json__Export
from mgraph_ai.providers.json.domain.Domain__MGraph__Json__Graph import Domain__MGraph__Json__Graph
from mgraph_ai_serverless.graph_engines.matplotlib.models.Model__Matplotlib__Render import Model__Matplotlib__Render
from osbot_utils.utils.Files import file_create_from_bytes
from osbot_utils.utils.Http import url_join_safe
from osbot_utils.utils.Env import get_env
Expand Down Expand Up @@ -40,11 +38,13 @@ def dot(self):
method_params = {'dot_source': dot_source}
return self.execute_request(method_path, method_params)

def matplotlib(self):
render_config = Model__Matplotlib__Render(graph_data=self.graph.json())
method_path = PATH__RENDER_MERMAID
method_params = asdict(render_config)
return self.execute_request(method_path, method_params)
# from mgraph_ai_serverless.graph_engines.matplotlib.models.Model__Matplotlib__Render import Model__Matplotlib__Render
# from dataclasses import asdict
# def matplotlib(self):
# render_config = Model__Matplotlib__Render(graph_data=self.graph.json())
# method_path = PATH__RENDER_MERMAID
# method_params = asdict(render_config)
# return self.execute_request(method_path, method_params)

def mermaid(self):
mermaid_code = self.export().to_mermaid().to_string()
Expand Down

0 comments on commit 7a3c5b8

Please sign in to comment.