Skip to content

Commit

Permalink
fix: don't include get_git_revision_hash in files
Browse files Browse the repository at this point in the history
fix: bump version to 2.0
  • Loading branch information
tsutterley committed Dec 29, 2022
1 parent ce13a31 commit b78f8e3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##################
`Release v1.2.0`__
`Release v2.0.0`__
##################

- ``refactor``: single implicit import of pyTMD tools (`#130 <https://github.com/tsutterley/pyTMD/pull/130>`_)
Expand All @@ -11,12 +11,12 @@
- ``feat``: new functions to output ATLAS, FES and GOT netCDF4 files (`#139 <https://github.com/tsutterley/pyTMD/pull/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
- ``docs``: add new pyTMD logo
- ``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
4 changes: 0 additions & 4 deletions pyTMD/io/ATLAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()))
Expand Down Expand Up @@ -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()))
Expand Down Expand Up @@ -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()))
Expand Down
2 changes: 0 additions & 2 deletions pyTMD/io/FES.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()))
Expand Down
2 changes: 0 additions & 2 deletions pyTMD/io/GOT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()))
Expand Down
3 changes: 0 additions & 3 deletions pyTMD/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
2.0.0

0 comments on commit b78f8e3

Please sign in to comment.