From 8588aefdc6549428c9b170b94902332ded2d4c49 Mon Sep 17 00:00:00 2001 From: Andres Asensio Ramos Date: Tue, 23 Apr 2024 09:32:42 +0100 Subject: [PATCH] Changed io module to io_hazel to avoid conflict with standard io --- hazel/__init__.py | 2 +- hazel/atmosphere.py | 2 +- hazel/chromosphere.py | 2 +- hazel/{io.py => io_hazel.py} | 0 hazel/model.py | 2 +- hazel/parametric.py | 2 +- hazel/photosphere.py | 2 +- hazel/spectrum.py | 2 +- hazel/stray.py | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename hazel/{io.py => io_hazel.py} (100%) diff --git a/hazel/__init__.py b/hazel/__init__.py index 8ee6782..577e105 100755 --- a/hazel/__init__.py +++ b/hazel/__init__.py @@ -7,7 +7,7 @@ from .spectrum import * from .multiprocess import * from .tools import * -from .io import * +from .io_hazel import * from .sir import * from .exceptions import * from .util import * diff --git a/hazel/atmosphere.py b/hazel/atmosphere.py index 2374761..1fda23e 100755 --- a/hazel/atmosphere.py +++ b/hazel/atmosphere.py @@ -4,7 +4,7 @@ from hazel.util import i0_allen, fvoigt from hazel.codes import hazel_code, sir_code from hazel.hsra import hsra_continuum -from hazel.io import Generic_hazel_file, Generic_SIR_file, Generic_parametric_file +from hazel.io_hazel import Generic_hazel_file, Generic_SIR_file, Generic_parametric_file from hazel.transforms import transformed_to_physical, physical_to_transformed, jacobian_transformed_to_physical, jacobian_transformation import copy from hazel.sir import Sir diff --git a/hazel/chromosphere.py b/hazel/chromosphere.py index 039c99c..b22d05f 100755 --- a/hazel/chromosphere.py +++ b/hazel/chromosphere.py @@ -5,7 +5,7 @@ from hazel.util import i0_allen from hazel.codes import hazel_code from hazel.hsra import hsra_continuum -from hazel.io import Generic_hazel_file +from hazel.io_hazel import Generic_hazel_file from hazel.exceptions import NumericalErrorHazel import copy diff --git a/hazel/io.py b/hazel/io_hazel.py similarity index 100% rename from hazel/io.py rename to hazel/io_hazel.py diff --git a/hazel/model.py b/hazel/model.py index 62c5524..bc32efb 100755 --- a/hazel/model.py +++ b/hazel/model.py @@ -3,7 +3,7 @@ from hazel.parametric import Parametric_atmosphere from hazel.stray import Straylight_atmosphere from hazel.configuration import Configuration -from hazel.io import Generic_output_file +from hazel.io_hazel import Generic_output_file from collections import OrderedDict from hazel.codes import hazel_code, sir_code from hazel.spectrum import Spectrum diff --git a/hazel/parametric.py b/hazel/parametric.py index ff6515b..ef741e6 100755 --- a/hazel/parametric.py +++ b/hazel/parametric.py @@ -4,7 +4,7 @@ from hazel.atmosphere import General_atmosphere from hazel.util import fvoigt from hazel.hsra import hsra_continuum -from hazel.io import Generic_parametric_file +from hazel.io_hazel import Generic_parametric_file import copy __all__ = ['Parametric_atmosphere'] diff --git a/hazel/photosphere.py b/hazel/photosphere.py index b1438c1..4217e49 100755 --- a/hazel/photosphere.py +++ b/hazel/photosphere.py @@ -4,7 +4,7 @@ from hazel.atmosphere import General_atmosphere from hazel.util import i0_allen, find_nearest from hazel.codes import sir_code -from hazel.io import Generic_SIR_file +from hazel.io_hazel import Generic_SIR_file import scipy.interpolate as interp from hazel.exceptions import NumericalErrorSIR from hazel.transforms import transformed_to_physical, jacobian_transformation diff --git a/hazel/spectrum.py b/hazel/spectrum.py index 15ba3d4..6b8fdd9 100755 --- a/hazel/spectrum.py +++ b/hazel/spectrum.py @@ -1,5 +1,5 @@ import numpy as np -from hazel.io import Generic_observed_file, Generic_stray_file, Generic_mask_file +from hazel.io_hazel import Generic_observed_file, Generic_stray_file, Generic_mask_file import os.path from astropy.constants import c from scipy import interpolate diff --git a/hazel/stray.py b/hazel/stray.py index 8dc972e..c18fab8 100755 --- a/hazel/stray.py +++ b/hazel/stray.py @@ -4,7 +4,7 @@ from hazel.atmosphere import General_atmosphere from hazel.util import fvoigt, i0_allen from hazel.hsra import hsra_continuum -from hazel.io import Generic_stray_file +from hazel.io_hazel import Generic_stray_file import copy import scipy.constants as constants