Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ of the project::
Testing
=======

The regression testsuite utilizes the `pytest` framework and may be executed by
The regression testsuite utilizes the `pytest` framework and may be installed
and executed by
::

pip install .[test]
python -m pytest --basetemp=Testing

Documentation
Expand Down
33 changes: 30 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
[build-system]
requires = ['setuptools', 'wheel', 'pytest', 'numpy', 'h5py', 'ase']
build-backend = 'setuptools.build_meta'
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "fortnet-python"
version = "0.4"
authors = [{name = "T. W. van der Heide"},]
dependencies = ["numpy", "h5py", "ase"]
requires-python = ">=3.10"
description = "Python Tools for the Fortnet Software Package"
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {text = "BSD"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Environment :: Console",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
]

[project.urls]
Homepage = "https://github.com/vanderhe/fortnet-python"
Documentation = "https://fortnet.readthedocs.io/en/latest/fortformat/index.html"
Repository = "https://github.com/vanderhe/fortnet-python.git"
Issues = "https://github.com/vanderhe/fortnet-python/issues"

[project.optional-dependencies]
test = ["pytest",]
35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

15 changes: 0 additions & 15 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/fortformat/fnetdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _process_data(self):
pos = np.where(
unique_global_zz == data[isys]['atomicnumbers'][iatom])
# Fortran indexing starts at 1
data[isys]['localattoglobalsp'][iatom] = pos[0] + 1
data[isys]['localattoglobalsp'][iatom] = pos[0].item() + 1

return data, unique_global_zz

Expand Down
Loading