Skip to content

Commit

Permalink
WIP: Rename _version.py to _changelog.py
Browse files Browse the repository at this point in the history
Make room for automatically generated `_version.py` file by renaming the existing file.
  • Loading branch information
gmloose committed May 3, 2024
1 parent 20d1e2b commit e2ebb0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bdsf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from .wavelet_atrous import Op_wavelet_atrous
from .psf_vary import Op_psf_vary
from .cleanup import Op_cleanup
from ._version import __version__
from ._changelog import __version__
from .functions import set_up_output_paths
import gc

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions bdsf/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def write_fits_list(img, filename=None, sort_by='index', objtype='gaul',
import os
import numpy as N
from astropy.io import fits as pyfits
from ._version import __version__
from ._changelog import __version__

mylog = mylogger.logging.getLogger("PyBDSM."+img.log+"Output")
if objtype == 'gaul':
Expand Down Expand Up @@ -617,7 +617,7 @@ def make_lsm_str(img, glist, gnames, incl_empty=False):
from .output import ra2hhmmss
from .output import dec2ddmmss
import numpy as N
from ._version import __version__
from ._changelog import __version__

outstr_list = ["# SAGECAL sky model\n"]
freq = "%.5e" % img.frequency
Expand Down Expand Up @@ -733,7 +733,7 @@ def make_ds9_str(img, glist, gnames, deconvolve=False, objtype='gaul', incl_empt
def make_ascii_str(img, glist, objtype='gaul', format='ascii', incl_empty=False,
incl_chan=False):
"""Makes a list of string entries for an ascii region file."""
from ._version import __version__
from ._changelog import __version__
outstr_list = []
freq = "%.5e" % img.frequency

Expand Down
2 changes: 1 addition & 1 deletion bdsf/pybdsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def main():
# Define the welcome banner to print on startup. Also check if there is a newer
# version on the STRW ftp server. If there is, print a message to the user
# asking them to update.
from bdsf._version import __version__, changelog
from bdsf._changelog import __version__, changelog

divider1 = '=' * 72 + '\n'
divider2 = '_' * 72 + '\n'
Expand Down

0 comments on commit e2ebb0c

Please sign in to comment.