Skip to content

Commit

Permalink
generate analysis json with unique file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed May 23, 2024
1 parent 1511dcb commit 761634b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion markimg/markimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def run(self, options):
d_lines = {}
d_lengths = {}
d_json = {}
jsonFilePath = os.path.join(options.outputdir, 'analysis.json')
row = ""
for row in data:

file_path = []
Expand Down Expand Up @@ -617,6 +617,7 @@ def run(self, options):
d_json[row] = {'info': d_info, 'femur': d_femur, 'tibia': d_tibia, 'total': d_total,
'pixel_distance': d_pixel, 'details': details}

jsonFilePath = os.path.join(options.outputdir, f'{row}-analysis.json')
# Open a json writer, and use the json.dumps()
# function to dump data
LOG("Saving %s" % jsonFilePath)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='markimg',
version='1.4.6',
version='1.4.8',
description='An app to mark landmark points and lines on an input image',
long_description=readme,
author='FNNDSC',
Expand Down

0 comments on commit 761634b

Please sign in to comment.