Skip to content

Commit 2dff55f

Browse files
authored
Merge pull request #12 from AtmoLib/cosmetics
minor fixes and copyright update
2 parents 6d3c960 + 4b162d4 commit 2dff55f

File tree

21 files changed

+38
-34
lines changed

21 files changed

+38
-34
lines changed

chemcat/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

4-
__all__ = [
5-
'cea',
6-
'janaf',
7-
'utils',
8-
]
9-
104
from .network import *
115
from . import cea
126
from . import janaf
137
from . import utils
148
from .version import __version__
159

10+
__all__ = [
11+
'cea',
12+
'janaf',
13+
'utils',
14+
]
15+
1616
__all__ += (
1717
network.__all__
1818
)

chemcat/cea/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
from .cea import *

chemcat/cea/cea.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
__all__ = [

chemcat/janaf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
from .janaf import *

chemcat/janaf/janaf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
__all__ = [

chemcat/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
__all__ = [

chemcat/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
from .utils import *

chemcat/utils/utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
__all__ = [
@@ -396,8 +396,12 @@ def read_elemental(element_file):
396396
N : 7.830
397397
O : 8.690
398398
"""
399-
elements, dex = np.loadtxt(
400-
element_file, dtype=str, comments='#', usecols=(1,2), unpack=True)
399+
with warnings.catch_warnings():
400+
# Ignore non-breaking warning for empty rows
401+
warnings.simplefilter('ignore', category=UserWarning)
402+
elements, dex = np.loadtxt(
403+
element_file, dtype=str, comments='#', usecols=(1,2), unpack=True,
404+
)
401405
dex_abundances = np.array(dex, float)
402406
return elements, dex_abundances
403407

chemcat/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Copyright (c) 2022-2024 Blecic and Cubillos
1+
# Copyright (c) 2022-2025 Blecic and Cubillos
22
# chemcat is open-source software under the GPL-2.0 license (see LICENSE)
33

44
# chemcat version:
5-
__version__ = '0.3.10'
5+
__version__ = '0.3.12'
66

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ authors = [
2121
]
2222

2323
dependencies = [
24-
'numpy>=1.23.5',
25-
'scipy>=1.5.4',
26-
'matplotlib>=3.3.4',
24+
'numpy>=2.0.0',
25+
'scipy>=1.13.0',
26+
'matplotlib>=3.9.2',
2727
'more-itertools>=8.4.0',
2828
]
2929

0 commit comments

Comments
 (0)