Skip to content

Commit 1cefe8c

Browse files
committed
🎨 fix typo in function name
1 parent 9682be6 commit 1cefe8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def _generate_plot_content(
512512

513513
# Add code to generate network depending on the report type
514514
if is_report_static:
515-
plot.save_netwrok_image(networkx_graph, static_plot_path, "png")
515+
plot.save_network_image(networkx_graph, static_plot_path, "png")
516516
plot_content.append(self._generate_image_content(static_plot_path))
517517
else:
518518
plot_content.append(self._generate_plot_code(plot, html_plot_file))

src/vuegen/report.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def read_network(self) -> nx.Graph:
277277
f"An error occurred while reading the network file: {str(e)}"
278278
)
279279

280-
def save_netwrok_image(
280+
def save_network_image(
281281
self, G: nx.Graph, output_file: str, format: str, dpi: int = 300
282282
) -> None:
283283
"""
@@ -294,6 +294,7 @@ def save_netwrok_image(
294294
dpi : int, optional
295295
The resolution of the image in dots per inch (default is 300).
296296
"""
297+
self.logger.debug("Try to save network as PyVis network: %s.", output_file)
297298
# Check if the output file path is valid
298299
if not os.path.isdir(os.path.dirname(output_file)):
299300
self.logger.error(
@@ -339,6 +340,7 @@ def create_and_save_pyvis_network(self, G: nx.Graph, output_file: str) -> Networ
339340
net : pyvis.network.Network
340341
A PyVis network object.
341342
"""
343+
self.logger.debug("Try to save network as PyVis network: %s.", output_file)
342344
# Check if the network object and output file path are valid
343345
if not isinstance(G, nx.Graph):
344346
self.logger.error(

0 commit comments

Comments
 (0)