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 Feb 12, 2024
1 parent 6b88978 commit 96234d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions HMF/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.
"""

import os
import sys

Expand Down
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
1 change: 1 addition & 0 deletions HMFcalc/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting and driving utilities for hmf."""

import copy
import io
import logging
Expand Down

0 comments on commit 96234d1

Please sign in to comment.