Skip to content

Commit

Permalink
Set correct getter function name in the Config class and create the o…
Browse files Browse the repository at this point in the history
…utput dir before setting it in the handler
  • Loading branch information
IshaanDesai committed Dec 30, 2024
1 parent 411d358 commit 23e726c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion micro_manager/adaptivity/adaptivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from math import exp
from typing import Callable
from warnings import warn
import subprocess
from micro_manager.tools.logging_wrapper import Logger

import numpy as np
Expand Down Expand Up @@ -40,8 +41,9 @@ def __init__(self, configurator, rank) -> None:
output_dir = configurator.get_output_dir()

if output_dir is not None:
subprocess.run(["mkdir", "-p", output_dir]) # Create output directory
self._metrics_logger = Logger(
__name__, output_dir + "adaptivity-metrics.csv", rank, csv_logger=True
__name__, output_dir + "/adaptivity-metrics.csv", rank, csv_logger=True
)
else:
self._metrics_logger = Logger(
Expand Down
2 changes: 1 addition & 1 deletion micro_manager/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def create_single_sim_object(self):
"""
return self._initialize_once

def get_output_dir_name(self):
def get_output_dir(self):
"""
Get the name of the output directory.
Expand Down

0 comments on commit 23e726c

Please sign in to comment.