From dfc0ed1259adca684acb883745af7f195ae76804 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:14:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- HMF/wsgi.py | 1 + HMFcalc/forms.py | 17 ++++++++++++++--- HMFcalc/utils.py | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/HMF/wsgi.py b/HMF/wsgi.py index 6b45651..1b9cb5c 100644 --- a/HMF/wsgi.py +++ b/HMF/wsgi.py @@ -13,6 +13,7 @@ framework. """ + import os import sys diff --git a/HMFcalc/forms.py b/HMFcalc/forms.py index 3e25b72..cea873b 100755 --- a/HMFcalc/forms.py +++ b/HMFcalc/forms.py @@ -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) @@ -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( diff --git a/HMFcalc/utils.py b/HMFcalc/utils.py index 5ba8464..b1c823a 100644 --- a/HMFcalc/utils.py +++ b/HMFcalc/utils.py @@ -1,4 +1,5 @@ """Plotting and driving utilities for hmf.""" + import copy import io import logging