Skip to content

Commit 6a7a117

Browse files
committed
update python paths
1 parent 9411696 commit 6a7a117

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ plt.colorbar()
195195
plt.show()
196196
```
197197

198-
![](dev/sff/hal.png)
198+
![](dev/sff/python/hal.sff.png)
199199

200200
## Resources
201201
* [FftSharp](https://github.com/swharden/FftSharp) - the module which actually performs the FFT and related transformations

dev/sff/python/hal.sff.png

81.6 KB
Loading

dev/sff/python/halMel.sff.png

66.2 KB
Loading

dev/sff/python/sffDemo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ def plotSFF(filePath, show=False):
1919
plt.figure()
2020
plt.pcolormesh(rotatedValues)
2121
plt.colorbar()
22-
plt.title(f"{filePath} Spectrogram")
23-
plt.savefig(filePath.replace(".sff", ".png"))
22+
plt.title(f"{os.path.basename(filePath)} Spectrogram")
23+
plt.savefig(os.path.basename(filePath)+".png")
2424
if show:
2525
plt.show()
2626
plt.close()
2727

2828

2929
if __name__ == "__main__":
30-
plotSFF("hal.sff", True)
31-
plotSFF("halMel.sff", True)
30+
plotSFF("../hal.sff", True)
31+
plotSFF("../halMel.sff", True)

0 commit comments

Comments
 (0)