Docstring missing for
degToDmsRational
3import os
4
5
6def degToDmsRational(deg_float): 7 minFloat = deg_float % 1 * 60
8 secFloat = minFloat % 1 * 60
9 deg = math.floor(deg_float)
Docstring missing for
move_completed_files
17 return ((deg, 1), (min, 1), (sec, 100))
18
19
20def move_completed_files(media_path, data_path, final_path, file):21 shutil.move(os.path.join(media_path, file), os.path.join(final_path, 'media', file))
22 shutil.move(os.path.join(data_path, file + '.json'), os.path.join('final', 'data', file + '.json'))
23 print("Modified image data and moved to final directory: ", file)
Docstring missing for
supports_file
23 print("Modified image data and moved to final directory: ", file)
24
25
26def supports_file(file, supported_files, data_files):27 return bool([ft for ft in supported_files if (ft in file.lower())]) and file + '.json' in data_files
Docstring missing for
process_image
8SUPPORTED_FILE_TYPES = ['mp4', 'mov']
9
10
11def process_image(media_path, data_path, final_path, file):12 print(f"Running process_image for file: {file} with supported file types: {SUPPORTED_FILE_TYPES}")
13 file_date = filedate.File(os.path.join(media_path, file))
14
Docstring missing for
process_image
8SUPPORTED_FILE_TYPES = ['jpg']
9
10
11def process_image(media_path, data_path, final_path, file):12 print(f"Running process_image for file: {file} with supported file types: {SUPPORTED_FILE_TYPES}")
13 media_data = json.load(open(os.path.join(data_path, file + '.json')))
14 data_title = media_data.get('title', '')
Description
The module/function docstring is missing.
If you want to ignore this, you can configure this in the .deepsource.toml
file. Please refer to docs for available options.