Skip to content

Commit

Permalink
Update version info in docs and geometric_features
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Dec 21, 2024
1 parent 234fe9e commit d6fdd75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import os
from datetime import date

import geometric_features
from geometric_features.docs.parse_quick_start import build_quick_start
from geometric_features.version import __version__

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -72,9 +71,9 @@
# built documents.
#
# The short X.Y version.
version = geometric_features.__version__
version = __version__
# The full version, including alpha/beta/rc tags.
release = geometric_features.__version__
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
7 changes: 4 additions & 3 deletions geometric_features/geometric_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import os
from importlib.resources import files as imp_res_files

import geometric_features
from geometric_features.download import download_files
from geometric_features.feature_collection import (FeatureCollection,
read_feature_collection)
from geometric_features.version import __version__


class GeometricFeatures(object):
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, cacheLocation=None, remoteBranchOrTag=None):
else:
self.cacheLocation = cacheLocation
if remoteBranchOrTag is None:
self.remoteBranch = geometric_features.__version__
self.remoteBranch = __version__
else:
self.remoteBranch = remoteBranchOrTag

Expand Down Expand Up @@ -259,7 +259,8 @@ def _get_feature_names(self, componentName, objectType, featureNames,
component = self.allFeaturesAndTags[componentName]

if objectType not in component:
raise KeyError(f'invalid object {objectType} in component {componentName}')
raise KeyError(
f'invalid object {objectType} in component {componentName}')

availableFeaturesAndTags = component[objectType]

Expand Down

0 comments on commit d6fdd75

Please sign in to comment.