Skip to content

Commit

Permalink
Add methods for selecting good peaks & chessboard edge detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nghia-vo committed Dec 13, 2024
1 parent d62478e commit fa9e040
Show file tree
Hide file tree
Showing 41 changed files with 779 additions and 567 deletions.
4 changes: 0 additions & 4 deletions discorpy/losa/loadersaver.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,16 +809,12 @@ def save_metadata_json(file_path, xcenter, ycenter, list_fact, overwrite=True):
str
Updated file path.
"""
# Get resolved file path and set to JSON suffix
file_path = __get_path(file_path, check_exist=False).resolve()
if file_path.suffix.lower() != '.json':
file_path = file_path.with_suffix('.json')
_create_folder(str(file_path))

if not overwrite:
file_path = _create_file_name(str(file_path))

# Create metadata dictionary
metadata = {
'xcenter': float(xcenter),
'ycenter': float(ycenter),
Expand Down
Loading

0 comments on commit fa9e040

Please sign in to comment.