Skip to content

Commit

Permalink
WIP on #4
Browse files Browse the repository at this point in the history
  • Loading branch information
KCollins committed Sep 17, 2024
1 parent 802d154 commit 83ecf0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conjugate_map/conjCalcFunctions.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
"""Functions for computing geomagnetic conjugate points."""

# Importing packages
import aacgmv2
import datetime as dt
import os

import aacgmv2
from geopack import geopack as gp
from geopack import t89
import gpxpy
import gpxpy.gpx
import numpy as np
import os
import pandas as pd


Expand Down Expand Up @@ -186,7 +187,7 @@ def conjcalc(gdf, latname="GLAT", lonname="GLON",
lon = row[lonname]
if is_verbose:
print('Checking hemisphere.')
if type(lon) == str:
if isinstance(lon, str):
if is_verbose:
print('Longitude encoded as string. Fixing...')
try:
Expand All @@ -195,7 +196,7 @@ def conjcalc(gdf, latname="GLAT", lonname="GLON",
except Exception as e:
print(e)
continue
if type(lat) == str:
if isinstance(lat, str):
if is_verbose:
print('Latitude encoded as string. Fixing...')
try:
Expand Down

0 comments on commit 83ecf0d

Please sign in to comment.