Skip to content

Commit

Permalink
Update mamba-org/provision-with-micromamba to mamba-org/setup-microma…
Browse files Browse the repository at this point in the history
…mba (#126)

* Update mamba-org/provision-with-micromamba to mamba-org/setup-micromamba

* Undo extra descriptive information in Stat.py

* Bugfix in test_cli.py for removal of --ratio argument from plot (as nsyn theta is in results file)
  • Loading branch information
tjstruck authored Dec 3, 2024
1 parent 3893b01 commit 84c2e4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Add micromamba to system path
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@main
with:
environment-name: dadi-cli
activate-environment: dadi-cli
Expand Down
3 changes: 2 additions & 1 deletion dadi_cli/Stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def gfunc(free_params, ns, pts):
)
# Add theta into popt
popt = np.append(popt, np.array([theta]))
f.write(f"Description\t{'\t'.join(param_names[1:])}\n")
# param_string = '\t'.join(param_names[1:])
# f.write(f"Description\t{param_string}\n")

f.write(
"Estimated 95% uncerts (theta adj), with step size "
Expand Down
4 changes: 0 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ def test_plot_args():
projections = [10, 10]
resid_range = 3
vmin = 1e-5
ratio = 2.31

args = parser.parse_args(
[
Expand Down Expand Up @@ -502,8 +501,6 @@ def test_plot_args():
str(resid_range),
"--vmin",
str(vmin),
"--ratio",
str(ratio)
]
)

Expand All @@ -520,7 +517,6 @@ def test_plot_args():
assert args.projections == projections
assert args.resid_range == resid_range
assert args.vmin == vmin
assert args.ratio == ratio


def test_stat_dm_args():
Expand Down

0 comments on commit 84c2e4b

Please sign in to comment.