Skip to content

Commit

Permalink
update docs and make sure test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed Nov 30, 2023
1 parent 9b36d04 commit 6f78b9c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@
2. `conda activate uips`
3. `pip install .`

Test

```
bash tutorials/run2D.sh
```

## Installation for users

`pip install uips`

Test

```
import os
Expand Down
2 changes: 1 addition & 1 deletion tests/main_from_input.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse

from uips.wrapper import downsample_dataset_from_input
from uips.wrapper import downsample_dataset_from_input_file

parser = argparse.ArgumentParser(description="Downsampler")
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion uips/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def downsample_dataset_from_input(inpt):
)
data_for_pdf_est = downSampledData

best_files = {}
# Advise for best sampling
if par.irank == par.iroot:
best_files = {}
if np.amax(meanCriterion) > 0:
print("\n")
maxCrit = np.argmax(meanCriterion, axis=0)
Expand Down

0 comments on commit 6f78b9c

Please sign in to comment.