You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! When running your PlanetaryOrbits python program I have encountered the following problem
play
generator.py", line 672, in play
samplefunc = self.samples[params['note']]
KeyError: 'F6'
This occurs within PyCharm or terminal.
Would you please have a look at this please, for me.
Thank you.
John
The text was updated successfully, but these errors were encountered:
Hi @johnp39 - I think this may be coming about because of where you are running the notebook example - this error usually comes up due to not finding the samples to read in. The line:
sampler = Sampler("../data/samples/solar_system")
in the notebook is a relative path, so running outside the example directory will not find the samples.
Looking a bit more, there may be other aspects of this example that is broken, due to changes in the sample read routine. I am looking to patch that here: #16 .
Does running it in the examples sub directory, or changing the path above to point to the correct place (i.e. the ./data/samples/solar_system subdirectory in the strauss repo) fix this current error?
What operating system are you running on?
once the above changes are merged, I'll let you know and this example should run as expected in the latest main branch version, thanks for bringing it to my attention!
Hi! When running your PlanetaryOrbits python program I have encountered the following problem
play
generator.py", line 672, in play
samplefunc = self.samples[params['note']]
KeyError: 'F6'
This occurs within PyCharm or terminal.
Would you please have a look at this please, for me.
Thank you.
John
The text was updated successfully, but these errors were encountered: