Skip to content

Commit

Permalink
Merge pull request #60 from Athanaseus/aimfast-patch-1
Browse files Browse the repository at this point in the history
Aimfast patch 1
  • Loading branch information
Athanaseus authored Sep 1, 2022
2 parents 30c6e3e + d7544f4 commit 6fefb6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions aimfast/aimfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ def _residual_plotter(res_noise_images, points=None, results=None,
inline=False, prefix=None, title_size='16pt',
x_label_size='12pt', y_label_size='12pt',
legend_size='10pt', xmajor_size='6pt',
ymajor_size='6pt', units='micro'):
ymajor_size='6pt', units='micro', svg=False):
"""Plot ratios of random residuals and noise
Parameters
Expand Down Expand Up @@ -2258,7 +2258,6 @@ def _residual_plotter(res_noise_images, points=None, results=None,
plot_residual.title.align = "center"
# Add object to plot list
residual_plot_list.append(row(plot_residual, column(stats_table)))
svg=True
if svg:
plot_residual.output_backend = "svg"
prefix = '.'.join(outfile.split('.')[:-1])
Expand Down Expand Up @@ -3079,9 +3078,8 @@ def get_argparser():
help='Prefix of output html files. Default: None.')
argument("--outfile",
help='Name of output file name. Default: fidelity_results.json')
argument('-svg', '--save-svg', dest='svg', default=True, action='store_true',
help='Compare all sources irrespective of shape, otherwise only '
'point-like sources are compared')
argument('-svg', '--save-svg', dest='svg', default=False, action='store_true',
help='Save plots in SVG format.')
return parser


Expand Down Expand Up @@ -3120,9 +3118,7 @@ def main():
restored_label = args.restored
model_label = args.model

if args.model and not args.x_col and not args.y_col:
plot_model_data(args.model, html_prefix=args.htmlprefix)
elif args.model and args.x_col and args.y_col:
if args.model and args.x_col and args.y_col:
plot_model_columns(args.model, args.x_col, args.y_col,
args.x_col_err, args.y_col_err,
x_label=args.x_label,
Expand Down Expand Up @@ -3219,7 +3215,7 @@ def main():
models = args.models
LOGGER.info(f"Number of model pair(s) to compare: {len(models)}")
if len(models) < 1:
LOGGER.error(f"{R}Can only compare two models at a time.{W}")
LOGGER.warn(f"{R}Can only compare two models at a time.{W}")
else:
models_list = []
for i, comp_mod in enumerate(models):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages

pkg = 'aimfast'
__version__ = "1.3.0"
__version__ = "1.3.1"
build_root = os.path.dirname(__file__)

def readme():
Expand All @@ -28,7 +28,7 @@ def requirements():
license="GNU GPL 3",
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Software Development :: Libraries :: Python Modules"],
keywords="fits dataset lsm statistics models html jupyter",
Expand Down

0 comments on commit 6fefb6a

Please sign in to comment.