Skip to content

Commit

Permalink
chore: bumped minimal geopandas version
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ committed Nov 1, 2024
1 parent 1dba23b commit 1187df8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Bumped minimal geopandas version

## [0.2.2] - 2024-10-23

## [0.2.1] - 2024-10-23
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ $ pixel-map --example london_buildings --no-bg -r ascii-bw

- `rich (>=12.0.0)`: For showing progress and generating terminal output

- `geopandas (>=0.6)`: For reading Geo files and plotting
- `geopandas (>=0.8)`: For reading Geo files and plotting

- `pyarrow (>=16.0.0)`: For geoparquet files support

Expand Down
2 changes: 1 addition & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion pixel_map/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
unicode characters.
"""

import os
from pathlib import Path
from typing import Any, Optional, Union

Expand Down Expand Up @@ -72,7 +73,11 @@ def plot_geo_data(
plotting_dpi (int, optional): Quality of matplotlib figure. It's used to multiply terminal
size by some value to get better quality plot. Defaults to 10.
"""
console = get_console()
force_terminal = os.getenv("FORCE_TERMINAL_MODE", "false").lower() == "true"
if force_terminal:
console = Console(force_interactive=False, force_jupyter=False, force_terminal=True)
else:
console = get_console()

if console_width:
console.width = console_width
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies = [
"typer[all]>=0.9.0",
"img2unicode[n2]>=0.1a11; sys_platform != 'win32' and sys_platform != 'darwin'",
"img2unicode>=0.1a11; sys_platform == 'win32' or sys_platform == 'darwin'",
"geopandas>=0.6",
"geopandas>=0.8",
"numpy>=1.26.0",
"contextily>=1",
"matplotlib>=3.2.0",
Expand Down

0 comments on commit 1187df8

Please sign in to comment.