Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiki-tempula committed Dec 11, 2022
1 parent a70d0c4 commit 883c4df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/alchemlyb/tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Test_automatic_base:
@staticmethod
@pytest.fixture(scope="session")
def workflow(tmp_path_factory):
outdir = tmp_path_factory.mktemp("out") / "out"
outdir = tmp_path_factory.mktemp("out") / "abc" / "def"
workflow = base.WorkflowBase(out=str(outdir))
workflow.run()
return workflow
Expand Down
3 changes: 1 addition & 2 deletions src/alchemlyb/workflows/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Basic building blocks for free energy workflows."""

import logging
import os
from pathlib import Path

import pandas as pd
Expand Down Expand Up @@ -59,7 +58,7 @@ def __init__(
self.out = out
if not Path(out).is_dir():
self.logger.info(f"Make output folder {out}.")
os.makedirs(out)
Path(out).mkdir(parents=True)

def _logger_setup(self):
self.logger = logging.getLogger("alchemlyb.workflows.WorkflowBase")
Expand Down

0 comments on commit 883c4df

Please sign in to comment.