Skip to content

Commit

Permalink
ENH: Update calibration writer to include comment on clipping-range
Browse files Browse the repository at this point in the history
  • Loading branch information
NicerNewerCar committed Apr 5, 2024
1 parent 1c78838 commit 33df368
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AutoscoperM/AutoscoperMLib/IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def generateCameraCalibrationFile(camera: Camera, filename: str):

contents_json = json.dumps(contents, indent=4)

# Add comments to file
contents_json += """\n//Note: the clipping-range field is not used by Autoscoper,
this is used to commuincate information between AutoscoperM and
VirtualRadiographGeneration modules within Slicer."""

with open(filename, "w+") as f:
f.write(contents_json)

Expand Down

0 comments on commit 33df368

Please sign in to comment.