Skip to content

Commit

Permalink
Merge branch 'add-json-converter' of https://github.com/sandialabs/py…
Browse files Browse the repository at this point in the history
…scan into add-json-converter
  • Loading branch information
rsbrost committed Jul 5, 2024
2 parents 8cf55be + 3ff79e3 commit a1f1700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscan/general/json_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def default(self, obj, debug=False):
elif callable(obj):
if debug is True:
print(f"obj {obj} is a function, returning source code.")
return inspect.getsource(obj)
return inspect.getsource(obj) # Talk with Andy about this and perhaps implementing in load_expt?
elif isinstance(obj, (WindowsPath, Path)): # This covers both WindowsPath and PosixPath
if debug is True:
print(f"obj {obj} is a Path or WindowsPath, returning string of the path.")
Expand Down

0 comments on commit a1f1700

Please sign in to comment.