Skip to content

Commit

Permalink
Merge pull request #19 from dalager/bugfix-import
Browse files Browse the repository at this point in the history
Fix broken import when packaged
  • Loading branch information
dalager authored Oct 10, 2024
2 parents a9687fb + dd04b32 commit a51a97f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Packaging_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pip install -i https://test.pypi.org/simple/ graphedexcel
## installation from local dist

```bash
pip install 'C:\projects\dalager\1 Projects\graphedexcel\dist\graphedexcel-0.0.7-py3-none-any.whl' --force-reinstall
pip install 'C:\projects\dalager\1 Projects\graphedexcel\dist\graphedexcel-0.0.0-py3-none-any.whl' --force-reinstall

```

Expand Down
2 changes: 1 addition & 1 deletion src/graphedexcel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .graphbuilder import build_graph_and_stats
from .graph_summarizer import print_summary
from .graph_visualizer import visualize_dependency_graph
import src.graphedexcel.logger_config # noqa
from graphedexcel import logger_config # noqa: F401

logger = logging.getLogger("graphedexcel.main")

Expand Down
4 changes: 1 addition & 3 deletions src/graphedexcel/graph_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,5 @@ def visualize_dependency_graph(

plt.legend(handles=legend_patches, title="Sheets", loc="upper left")

plt.savefig(output_path, bbox_inches="tight") # Ensure layout fits
plt.savefig(output_path, bbox_inches="tight")
plt.close() # Close the figure to free memory

logger.info(f"Graph visualization saved to {output_path}")

0 comments on commit a51a97f

Please sign in to comment.