Skip to content

Commit

Permalink
Merge pull request #501 from maps-as-data/tqdm_autonotebook
Browse files Browse the repository at this point in the history
Use tqdm autonotebook for tqdm
  • Loading branch information
rwood-97 authored Sep 12, 2024
2 parents 889408e + f9d12df commit 3db8e6f
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/joss-draft-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: paper
# This is the output path where Pandoc will write the compiled
Expand Down
4 changes: 0 additions & 4 deletions mapreader/classify/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

from .datasets import PatchDataset

# import pickle
# from tqdm.autonotebook import tqdm
# from torch.nn.modules.module import _addindent


class ClassifierContainer:
"""
Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/sheet_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pyproj.crs import CRS
from shapely.geometry import LineString, Point, Polygon, shape
from shapely.ops import unary_union
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm

from .downloader_utils import get_grid_bb_from_polygon, get_polygon_from_grid_bb
from .tile_loading import DEFAULT_TEMP_FOLDER, TileDownloader
Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/tile_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import urllib.request

from joblib import Parallel, delayed
from tqdm import tqdm
from tqdm.autonotebook import tqdm

from .data_structures import GridBoundingBox, GridIndex

Expand Down
2 changes: 1 addition & 1 deletion mapreader/download/tile_merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os

from PIL import Image
from tqdm import tqdm
from tqdm.autonotebook import tqdm

from .data_structures import GridBoundingBox, GridIndex
from .tile_loading import DEFAULT_IMG_DOWNLOAD_FORMAT, DEFAULT_TEMP_FOLDER
Expand Down
2 changes: 1 addition & 1 deletion mapreader/load/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from rasterio.plot import reshape_as_raster
from shapely import wkt
from shapely.geometry import Polygon, box
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm

from mapreader.download.data_structures import GridBoundingBox, GridIndex
from mapreader.download.downloader_utils import get_polygon_from_grid_bb
Expand Down
2 changes: 1 addition & 1 deletion mapreader/process/context_post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from itertools import product

import pandas as pd
from tqdm import tqdm
from tqdm.autonotebook import tqdm


class ContextPostProcessor:
Expand Down
2 changes: 1 addition & 1 deletion mapreader/process/occlusion_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from PIL import Image
from torch import nn
from torchvision import transforms
from tqdm import tqdm
from tqdm.autonotebook import tqdm


class OcclusionAnalyzer:
Expand Down
2 changes: 1 addition & 1 deletion mapreader/spot_text/runner_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pandas as pd
from PIL import Image
from shapely import Polygon
from tqdm.auto import tqdm
from tqdm.autonotebook import tqdm


class Runner:
Expand Down

0 comments on commit 3db8e6f

Please sign in to comment.