Skip to content

Commit c244e19

Browse files
committed
updated README and dependencies
1 parent 4956ea3 commit c244e19

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ NOTE for developers: If you wish to fork/clone the respository and make changes
3434

3535
### Dependencies
3636

37-
- Python 3.7.3
37+
- Python 3.X
3838
- NumPy
3939
- SciPy
4040
- Pandas
41+
- PyTables
4142
- PyYAML
4243
- Matplotlib
4344

@@ -57,7 +58,7 @@ import yaml
5758
from likelihood_combiner.combiner import run_combiner
5859

5960
with open('</installation/path>/config/config.yml', 'r') as myconfig:
60-
config = yaml.load(myconfig)
61+
config = yaml.safe_load(myconfig)
6162
run_combiner(config)
6263
```
6364

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- menpo
66
dependencies:
7-
- python=3.7.3
7+
- python
88
- matplotlib
99
- numpy
1010
- scipy

likelihood_combiner/combiner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run_combiner(config, sigmavULs, sigmavULs_Jnuisance, simulations=[-1]):
137137
args = parser.parse_args()
138138

139139
with open(args.config_file, 'r') as config_file:
140-
config = yaml.load(config_file)
140+
config = yaml.safe_load(config_file)
141141

142142
try:
143143
hdf5file = config['Data']['hdf5_dataset']

likelihood_combiner/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def plot_sigmavULs(hdf5file, output_dir, config):
8787
if config['Data']['J_nuisance']:
8888
sigmavULs_Jnuisance = pd.read_hdf(hdf5file, key='{}/sigmavULs_Jnuisance'.format(channel))
8989
for ul_dict in [sigmavULs,sigmavULs_Jnuisance]:
90-
if not ul_dict:
90+
if not dict(ul_dict):
9191
continue
9292
masses = np.squeeze(ul_dict[['masses']].to_numpy())
9393
data = np.squeeze(ul_dict[['data']].to_numpy())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
setup(name='lklcom',
4-
version='0.2.0',
4+
version='0.3.0',
55
description='LikelihoodCombiner combines likelihoods from different experiments.',
66
url='https://github.com/TjarkMiener/likelihood_combiner',
77
license='BSD-3-Clause',

0 commit comments

Comments
 (0)