Skip to content

Commit b5f06ce

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4082591 commit b5f06ce

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

HMF/wsgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
framework.
1414
1515
"""
16+
1617
import os
1718
import sys
1819

HMFcalc/forms.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,22 @@ class TransferForm(HMFModelForm):
7171
("CAMB", "CAMB"),
7272
("EH_BAO", "Eisenstein-Hu (1998) (with BAO)"),
7373
("EH_NoBAO", "Eisenstein-Hu (1998) (no BAO)"),
74-
("BBKS", "BBKS (1986)",),
74+
(
75+
"BBKS",
76+
"BBKS (1986)",
77+
),
7578
("BondEfs", "Bond-Efstathiou"),
7679
]
7780
_initial = "CAMB"
7881
module = transfer_models
7982
ignore_fields = ["camb_params"]
8083

81-
field_kwargs = {"fname": {"type": forms.FileField, "label": "",}}
84+
field_kwargs = {
85+
"fname": {
86+
"type": forms.FileField,
87+
"label": "",
88+
}
89+
}
8290

8391
def clean_transfer_fname(self):
8492
thefile = self.cleaned_data.get("transfer_fname", None)
@@ -124,7 +132,10 @@ class TransferFramework(HMFFramework):
124132
)
125133

126134
dlnk = forms.FloatField(
127-
label="lnk Step Size", initial=0.05, min_value=0.005, max_value=0.5,
135+
label="lnk Step Size",
136+
initial=0.05,
137+
min_value=0.005,
138+
max_value=0.5,
128139
)
129140

130141
takahashi = forms.BooleanField(

HMFcalc/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plotting and driving utilities for hmf."""
2+
23
import copy
34
import io
45
import logging

0 commit comments

Comments
 (0)