Skip to content

Commit cc57be9

Browse files
authored
Fix more whitespace errors (#34)
1 parent c4bb3cf commit cc57be9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

Diff for: CONTRIBUTING.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -148,40 +148,38 @@ class NucDivPlot(View):
148148
@param.depends("window_size")
149149
def __panel__(self):
150150
windows = make_windows(self.window_size, self.datastore.tsm.ts.sequence_length)
151-
data = pd.DataFrame(self.datastore.tsm.ts.diversity(windows=windows))
151+
data = pd.DataFrame(self.datastore.tsm.ts.diversity(windows=windows))
152152
data.columns = ["pi"]
153153
return pn.panel(data.hvplot.line(y="pi"))
154154

155155
def sidebar(self):
156156
return pn.Card(
157-
self.param.window_size,
158-
collapsed=True,
159-
title="Nucleotide diversity plotting options",
157+
self.param.window_size,
158+
collapsed=True,
159+
title="Nucleotide diversity plotting options",
160160
header_background=config.SIDEBAR_BACKGROUND,
161161
active_header_background=config.SIDEBAR_BACKGROUND,
162162
styles=config.VCARD_STYLE,
163163
)
164-
165164
```
166165

167166
Then we modify the `MyAnalysisPage` class as follows:
168167

169168
```python
170-
171169
class MyAnalysisPage(View):
172170
key = "myanalysis"
173171
title = "My Analysis"
174-
nucdiv = param.ClassSelector(class_=NucDivPlot)
172+
nucdiv = param.ClassSelector(class_=NucDivPlot)
175173

176-
def __init__(self, **kwargs):
177-
super().__init__(**kwargs)
178-
self.nucdiv = NucDivPlot(datastore=self.datastore)
174+
def __init__(self, **kwargs):
175+
super().__init__(**kwargs)
176+
self.nucdiv = NucDivPlot(datastore=self.datastore)
179177

180178
def __panel__(self):
181179
return pn.Column(self.nucdiv)
182180

183-
def sidebar(self):
184-
return pn.Column(self.nucdiv.sidebar)
181+
def sidebar(self):
182+
return pn.Column(self.nucdiv.sidebar)
185183
```
186184

187185
Reload the app and hopefully you will see an added plot and sidebar.

0 commit comments

Comments
 (0)