Skip to content

Commit e466c03

Browse files
committed
Release PyPWA 3.4
This includes some minor fixes, depreciates some features, and includes MCMC.
1 parent 88af007 commit e466c03

8 files changed

Lines changed: 58 additions & 371 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All changes important to the user will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/)
77

8+
## [3.4.0] - 2021-7-23
9+
### Added
10+
- Peter's emcee wrapper, available at PyPWA.mcmc
11+
### Changed
12+
- System tests are now located in tests/system_tests
13+
- PyMask will now return exit values on call
14+
### Removed
15+
- PySimulate has been removed since it was limited in use, and it's
16+
functionality has been consumed by the PyPWA scripting libs.
17+
18+
819
## [3.3.0] - 2021-6-20
920
### Added
1021
- 2D Gauss introductory tutorial to the documentation

PyPWA/progs/masking.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def start_masking(arguments: List[str] = sys.argv[1:]):
4545
output_file = file_manager.get_writer(args.output, input_file.data_type)
4646
else:
4747
print(f"{args.input} must exist!")
48-
sys.exit(1)
48+
return 1
4949

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

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

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

9898
# Setup description
9999
if pf.all() == 1:

PyPWA/progs/simulation.py

Lines changed: 0 additions & 319 deletions
This file was deleted.

0 commit comments

Comments
 (0)