Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhundhausen committed Jan 29, 2024
1 parent 08287a9 commit 38f5aa2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion menu_tools/object_performance/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _write_scalings_to_file(self, obj: Object, params: np.ndarray) -> None:
)
os.makedirs(fpath, exist_ok=True)
a, b = params
with open(os.path.join(fpath, f"{str(obj)}.yaml"), "w") as f:
with open(os.path.join(fpath, str(obj) + ".yaml"), "w") as f:
yaml.dump({"offset": float(a), "slope": float(b)}, f)

def run(self):
Expand Down
4 changes: 0 additions & 4 deletions menu_tools/utils/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ def __init__(
def __str__(self) -> str:
return f"{self.nano_obj_name}:{self.obj_id_name}:{self.eta_range}"

@property
def file_ext(self) -> str:
return str(self).replace(":", "_")

@property
def nano_obj_name(self) -> str:
return self.object_key.split(":")[0]
Expand Down

0 comments on commit 38f5aa2

Please sign in to comment.