Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2021
1 parent f5040aa commit 4499f0c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions HMFcalc/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,22 @@ class TransferForm(HMFModelForm):
("CAMB", "CAMB"),
("EH_BAO", "Eisenstein-Hu (1998) (with BAO)"),
("EH_NoBAO", "Eisenstein-Hu (1998) (no BAO)"),
("BBKS", "BBKS (1986)",),
(
"BBKS",
"BBKS (1986)",
),
("BondEfs", "Bond-Efstathiou"),
]
_initial = "CAMB"
module = transfer_models
ignore_fields = ["camb_params"]

field_kwargs = {"fname": {"type": forms.FileField, "label": "",}}
field_kwargs = {
"fname": {
"type": forms.FileField,
"label": "",
}
}

def clean_transfer_fname(self):
thefile = self.cleaned_data.get("transfer_fname", None)
Expand Down Expand Up @@ -124,7 +132,10 @@ class TransferFramework(HMFFramework):
)

dlnk = forms.FloatField(
label="lnk Step Size", initial=0.05, min_value=0.005, max_value=0.5,
label="lnk Step Size",
initial=0.05,
min_value=0.005,
max_value=0.5,
)

takahashi = forms.BooleanField(
Expand Down

0 comments on commit 4499f0c

Please sign in to comment.