Skip to content

Commit

Permalink
Release PyPWA 3.4
Browse files Browse the repository at this point in the history
This includes some minor fixes, depreciates some features, and includes
MCMC.
  • Loading branch information
markjonestx committed Jul 23, 2021
1 parent 88af007 commit e466c03
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 371 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All changes important to the user will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/)

## [3.4.0] - 2021-7-23
### Added
- Peter's emcee wrapper, available at PyPWA.mcmc
### Changed
- System tests are now located in tests/system_tests
- PyMask will now return exit values on call
### Removed
- PySimulate has been removed since it was limited in use, and it's
functionality has been consumed by the PyPWA scripting libs.


## [3.3.0] - 2021-6-20
### Added
- 2D Gauss introductory tutorial to the documentation
Expand Down
8 changes: 4 additions & 4 deletions PyPWA/progs/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def start_masking(arguments: List[str] = sys.argv[1:]):
output_file = file_manager.get_writer(args.output, input_file.data_type)
else:
print(f"{args.input} must exist!")
sys.exit(1)
return 1

# Load the correct file
if args.use_or:
Expand All @@ -54,7 +54,7 @@ def start_masking(arguments: List[str] = sys.argv[1:]):
logic = npy.logical_xor
elif args.use_or and args.use_xor:
print("Only select OR or XOR, not both!")
sys.exit(1)
return 1
else:
logic = npy.logical_and

Expand All @@ -71,7 +71,7 @@ def start_masking(arguments: List[str] = sys.argv[1:]):
current_pf = file_manager.parse(mask_file)
else:
print(f"{mask_file} must exist!")
sys.exit(1)
return 1

# Convert selection array to a boolean mask.
if "u8" == current_pf.dtype or "u4" == current_pf.dtype:
Expand All @@ -93,7 +93,7 @@ def start_masking(arguments: List[str] = sys.argv[1:]):
f"Masking data isn't the same length as input!"
f" Mask is {len(pf)} and input is {len(input_file)}."
)
sys.exit(1)
return 1

# Setup description
if pf.all() == 1:
Expand Down
319 changes: 0 additions & 319 deletions PyPWA/progs/simulation.py

This file was deleted.

0 comments on commit e466c03

Please sign in to comment.