diff --git a/add_new_features.py b/add_new_features.py index 6689f83..c9f846d 100644 --- a/add_new_features.py +++ b/add_new_features.py @@ -24,8 +24,10 @@ features_in_csv = list(features_df["Feature Name"]) # list of all features that exist (with both latitude/longitude values) - retrieved_features = pydar.features_from_latlon_range( - min_latitude=-90, max_latitude=90, min_longitude=0, max_longitude=360) + retrieved_features = pydar.features_from_latlon_range(min_latitude=-90, + max_latitude=90, + min_longitude=0, + max_longitude=360) # check if all features in CSV have both latitude/longitude values if not features_in_csv == retrieved_features: diff --git a/example_pydar_script.py b/example_pydar_script.py index d3ba9d4..a1ef21f 100644 --- a/example_pydar_script.py +++ b/example_pydar_script.py @@ -26,11 +26,10 @@ f"\nFeature Names Found at -72 latitude and 183 longitude = {feature_names_list}" ) - feature_names_list = pydar.features_from_latlon_range( - min_latitude=-82, - max_latitude=-72, - min_longitude=183, - max_longitude=190) + feature_names_list = pydar.features_from_latlon_range(min_latitude=-82, + max_latitude=-72, + min_longitude=183, + max_longitude=190) print( f"\nFeature Names Found in Latitude/Longitude Range = {feature_names_list}" ) diff --git a/pydar/pytests/test_error_retrieve_ids_by_time_position.py b/pydar/pytests/test_error_retrieve_ids_by_time_position.py index 244f02b..8a681d1 100644 --- a/pydar/pytests/test_error_retrieve_ids_by_time_position.py +++ b/pydar/pytests/test_error_retrieve_ids_by_time_position.py @@ -493,11 +493,10 @@ def test_retrieveIDSByLatitudeLongitude_verifyOutput(caplog): def test_retrieveFeaturesFromLatitudeLongitudeRange_verifyOutput(caplog): - found_features = pydar.features_from_latlon_range( - min_latitude=-82, - max_latitude=-72, - min_longitude=183, - max_longitude=190) + found_features = pydar.features_from_latlon_range(min_latitude=-82, + max_latitude=-72, + min_longitude=183, + max_longitude=190) assert found_features == [ 'Crveno Lacus', 'Ontario Lacus', 'Romo Planitia', 'Rossak Planitia', 'Saraswati Flumen' diff --git a/pydar/retrieve_ids_by_time_position.py b/pydar/retrieve_ids_by_time_position.py index 2a46abe..c95d62a 100644 --- a/pydar/retrieve_ids_by_time_position.py +++ b/pydar/retrieve_ids_by_time_position.py @@ -327,20 +327,18 @@ def features_from_latlon(latitude: (int, float) = None, longitude=longitude) # Runs range check, but the range is 0 for an exact spot - feature_names_list = features_from_latlon_range( - min_latitude=latitude, - max_latitude=latitude, - min_longitude=longitude, - max_longitude=longitude) + feature_names_list = features_from_latlon_range(min_latitude=latitude, + max_latitude=latitude, + min_longitude=longitude, + max_longitude=longitude) return feature_names_list ### RETURN FEATURE NAMES FOR A RANGE OF LATITUDE/LONGTIUDES ############# -def features_from_latlon_range( - min_latitude: (int, float) = None, - max_latitude: (int, float) = None, - min_longitude: (int, float) = None, - max_longitude: (int, float) = None) -> list: +def features_from_latlon_range(min_latitude: (int, float) = None, + max_latitude: (int, float) = None, + min_longitude: (int, float) = None, + max_longitude: (int, float) = None) -> list: # Retrieve all Feature Names that are within a range of latitude/longitude # Returns a list of feature names pydar.errorHandlingRetrieveIDSByLatitudeLongitudeRange(