From b78f8e3c777fe7bfb061702fb96d1ef688b93f92 Mon Sep 17 00:00:00 2001 From: tsutterley Date: Thu, 29 Dec 2022 14:23:58 -0800 Subject: [PATCH] fix: don't include `get_git_revision_hash` in files fix: bump version to 2.0 --- .../{release-v1.2.0.rst => release-v2.0.0.rst} | 6 +++--- pyTMD/io/ATLAS.py | 4 ---- pyTMD/io/FES.py | 2 -- pyTMD/io/GOT.py | 2 -- pyTMD/spatial.py | 3 --- version.txt | 2 +- 6 files changed, 4 insertions(+), 15 deletions(-) rename doc/source/release_notes/{release-v1.2.0.rst => release-v2.0.0.rst} (88%) diff --git a/doc/source/release_notes/release-v1.2.0.rst b/doc/source/release_notes/release-v2.0.0.rst similarity index 88% rename from doc/source/release_notes/release-v1.2.0.rst rename to doc/source/release_notes/release-v2.0.0.rst index fc83b214..c49d3e7f 100644 --- a/doc/source/release_notes/release-v1.2.0.rst +++ b/doc/source/release_notes/release-v2.0.0.rst @@ -1,5 +1,5 @@ ################## -`Release v1.2.0`__ +`Release v2.0.0`__ ################## - ``refactor``: single implicit import of pyTMD tools (`#130 `_) @@ -11,7 +11,7 @@ - ``feat``: new functions to output ATLAS, FES and GOT netCDF4 files (`#139 `_) - ``feat``: output variables for some standard epochs used within tide programs - ``feat``: update forecast notebook with dynamic plotting -- ``fix``: copy input coordinates so not adjusted within functions +- ``fix``: copy input coordinates within read functions so they are not transformed - ``docs``: update documentation for new structure - ``docs``: standardized citation format throughout docstrings - ``docs``: add release notes for all prior public releases @@ -19,4 +19,4 @@ - ``test``: read header from OPT test file and compare more variables - ``test``: add tests for ``io`` methods -.. __: https://github.com/tsutterley/pyTMD/releases/tag/1.2.0 +.. __: https://github.com/tsutterley/pyTMD/releases/tag/2.0.0 diff --git a/pyTMD/io/ATLAS.py b/pyTMD/io/ATLAS.py index 71cade4d..2568646b 100644 --- a/pyTMD/io/ATLAS.py +++ b/pyTMD/io/ATLAS.py @@ -98,7 +98,6 @@ import pyTMD.version import pyTMD.io.constituents import pyTMD.interpolate -from pyTMD.utilities import get_git_revision_hash # attempt imports try: @@ -910,7 +909,6 @@ def output_netcdf_grid(FILE, hz, hu, hv, # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # Output NetCDF structure information logging.info(FILE) logging.info(list(fileID.variables.keys())) @@ -987,7 +985,6 @@ def output_netcdf_elevation(FILE, h, lon_z, lat_z, constituent): # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # Output NetCDF structure information logging.info(FILE) logging.info(list(fileID.variables.keys())) @@ -1086,7 +1083,6 @@ def output_netcdf_transport(FILE, u, v, lon_u, lat_u, # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # Output NetCDF structure information logging.info(FILE) logging.info(list(fileID.variables.keys())) diff --git a/pyTMD/io/FES.py b/pyTMD/io/FES.py index a75448a1..233b8e36 100644 --- a/pyTMD/io/FES.py +++ b/pyTMD/io/FES.py @@ -95,7 +95,6 @@ import pyTMD.version import pyTMD.interpolate import pyTMD.io.constituents -from pyTMD.utilities import get_git_revision_hash # attempt imports try: @@ -795,7 +794,6 @@ def output_netcdf_file(FILE, hc, lon, lat, constituent, **kwargs): # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # Output NetCDF structure information logging.info(FILE) logging.info(list(fileID.variables.keys())) diff --git a/pyTMD/io/GOT.py b/pyTMD/io/GOT.py index 9e522be9..9bc285e3 100644 --- a/pyTMD/io/GOT.py +++ b/pyTMD/io/GOT.py @@ -90,7 +90,6 @@ import pyTMD.version import pyTMD.interpolate import pyTMD.io.constituents -from pyTMD.utilities import get_git_revision_hash # attempt imports try: @@ -731,7 +730,6 @@ def output_netcdf_file(FILE, hc, lon, lat, constituent): # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # Output NetCDF structure information logging.info(FILE) logging.info(list(fileID.variables.keys())) diff --git a/pyTMD/spatial.py b/pyTMD/spatial.py index 08c43eee..23a0d188 100644 --- a/pyTMD/spatial.py +++ b/pyTMD/spatial.py @@ -62,7 +62,6 @@ import numpy as np import dateutil.parser import pyTMD.version -from pyTMD.utilities import get_git_revision_hash # attempt imports try: import osgeo.gdal, osgeo.osr, osgeo.gdalconst @@ -691,7 +690,6 @@ def to_netCDF4(output, attributes, filename, **kwargs): # add attributes for software information fileID.software_reference = pyTMD.version.project_name fileID.software_version = pyTMD.version.full_version - fileID.software_revision = get_git_revision_hash() # add file-level attributes if applicable if 'ROOT' in attributes.keys(): # Defining attributes for file @@ -740,7 +738,6 @@ def to_HDF5(output, attributes, filename, **kwargs): # add attributes for software information fileID.attrs['software_reference'] = pyTMD.version.project_name fileID.attrs['software_version'] = pyTMD.version.full_version - fileID.attrs['software_revision'] = get_git_revision_hash() # add file-level attributes if applicable if 'ROOT' in attributes.keys(): # Defining attributes for file diff --git a/version.txt b/version.txt index 26aaba0e..359a5b95 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.2.0 +2.0.0 \ No newline at end of file