diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000000000000000000000000000000000..1e13d8d7f5221e3980660b8267d0634f3c9b9034 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Current File with Arguments", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "args": "${command:pickArgs}", + "python": "~/miniconda3/envs/Python3.11/bin/python" + + } + ] +} \ No newline at end of file diff --git a/PyNutil/read_and_write.py b/PyNutil/read_and_write.py index 160e302c7a24edab204ad1868dda2dadf3d2630b..be1f84e4aa6c37fc6a454448686d0b10ea48e3d8 100644 --- a/PyNutil/read_and_write.py +++ b/PyNutil/read_and_write.py @@ -29,11 +29,8 @@ def load_visualign_json(filename): "target-resolution": [456, 528, 320], "slices": slices, } - # save with .json extension need to see if i can remove this - with open( - filename.replace(".waln", ".json").replace(".wwrp", ".json"), "w" - ) as f: - json.dump(lz_compat_file, f, indent=4) + + else: slices = vafile["slices"]