Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams committed Jan 7, 2025
1 parent 6748c44 commit f1ebeea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pds/registry/utils/geostac/create_lola_pds4.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
import argparse
import importlib
import logging
import os
from datetime import date
from pathlib import Path

import requests
from jinja2 import Environment, select_autoescape
from jinja2 import Environment
from jinja2 import select_autoescape
from pds.registry.utils.geostac import templates

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


def check_for_overlap(bbox1, bbox2):
"""Checks if bounding boxes overlap anywhere.
Expand Down Expand Up @@ -93,7 +94,7 @@ def create_product_external(item):
item_title = item["assets"]["data"]["title"]

last_slash_i = item["assets"]["data"]["href"].rfind("/")
file = "data/" +item["assets"]["data"]["href"][last_slash_i + 1:]
file = "data/" + item["assets"]["data"]["href"][last_slash_i + 1:]
logger.info(f'file is on {item["assets"]["data"]["href"]},fake file is on {file}')
open("lola_xml/product_external/" + file, 'a').close()

Expand Down

0 comments on commit f1ebeea

Please sign in to comment.