Skip to content

Commit 0a217d4

Browse files
committed
Use consistent quote marks
1 parent 129c7fd commit 0a217d4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

  • lib/node_modules/@stdlib/math/base/dist/betaprime/kurtosis/test/fixtures/python
  • tools/snippets/test/fixtures/python

lib/node_modules/@stdlib/math/base/dist/betaprime/kurtosis/test/fixtures/python/runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def gen(alpha, beta, name):
3030
python> gen(alpha, beta, \"./data.json\")
3131
```
3232
"""
33-
3433
dist = betaprime(alpha, beta)
3534
kurtosis = dist.stats(moments='k')
3635

@@ -44,14 +43,15 @@ def gen(alpha, beta, name):
4443
# Based on the script directory, create an output filepath:
4544
filepath = os.path.join(DIR, name)
4645

46+
# Write the data to the output filepath as JSON:
4747
with open(filepath, 'w') as outfile:
4848
json.dump(data, outfile)
4949

5050

5151
def main():
5252
"""Generate fixture data."""
53-
alpha = random_sample(100) * 10.0 + 10.0
54-
beta = random_sample(100) * 10.0 + 10.0
53+
alpha = random_sample(100)*10.0 + 10.0
54+
beta = random_sample(100)*10.0 + 10.0
5555
gen(alpha, beta, "data.json")
5656

5757

tools/snippets/test/fixtures/python/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def gen(x, name):
2323
2424
``` python
2525
python> x = linspace(-1000, 1000, 2001)
26-
python> gen(x, \"./data.json\")
26+
python> gen(x, './data.json')
2727
```
2828
"""
2929
# TODO: generate fixtures
@@ -38,7 +38,7 @@ def gen(x, name):
3838
filepath = os.path.join(DIR, name)
3939

4040
# Write the data to the output filepath as JSON:
41-
with open(filepath, 'w') as outfile:
41+
with open(filepath, "w") as outfile:
4242
json.dump(data, outfile)
4343

4444

0 commit comments

Comments
 (0)