From 2a0161f4775dbaa62697ed2d446437f9df7b4cc1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 21:52:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/tutorials/plot_synthetic.py | 1 + src/demcmc/dem.py | 1 + src/demcmc/emission.py | 1 + src/demcmc/mcmc.py | 1 + src/demcmc/sample_data.py | 1 + src/demcmc/units.py | 1 + 6 files changed, 6 insertions(+) diff --git a/doc/tutorials/plot_synthetic.py b/doc/tutorials/plot_synthetic.py index 7bffe51..1bf5610 100644 --- a/doc/tutorials/plot_synthetic.py +++ b/doc/tutorials/plot_synthetic.py @@ -4,6 +4,7 @@ This page contains a tutorial, stepping the user through estimating a DEM. We don't use any real data here, but instead a series of fake lines that have Gaussian contribution functions. """ + ################################################################## # Start by importing the required modules import astropy.units as u diff --git a/src/demcmc/dem.py b/src/demcmc/dem.py index 70a1b1e..fdba749 100644 --- a/src/demcmc/dem.py +++ b/src/demcmc/dem.py @@ -1,6 +1,7 @@ """ Classes for working with DEM data. """ + from __future__ import annotations from dataclasses import dataclass diff --git a/src/demcmc/emission.py b/src/demcmc/emission.py index ffd6491..c086da6 100644 --- a/src/demcmc/emission.py +++ b/src/demcmc/emission.py @@ -1,6 +1,7 @@ """ Structures for storing and working with emission lines. """ + import functools from abc import ABC, abstractmethod, abstractproperty from dataclasses import dataclass diff --git a/src/demcmc/mcmc.py b/src/demcmc/mcmc.py index 1627cce..ba0accd 100644 --- a/src/demcmc/mcmc.py +++ b/src/demcmc/mcmc.py @@ -1,6 +1,7 @@ """ Functions for carrying out MCMC estimation of DEMs. """ + from typing import List, Sequence, Tuple import emcee diff --git a/src/demcmc/sample_data.py b/src/demcmc/sample_data.py index d3fe51f..bf765fd 100644 --- a/src/demcmc/sample_data.py +++ b/src/demcmc/sample_data.py @@ -1,6 +1,7 @@ """ Load sample data. """ + from pathlib import Path from typing import Tuple diff --git a/src/demcmc/units.py b/src/demcmc/units.py index c5a2f0a..1893c97 100644 --- a/src/demcmc/units.py +++ b/src/demcmc/units.py @@ -1,6 +1,7 @@ """ Definition of global units used throughout demcmc. """ + import astropy.units as u u_temp = u.K