pyALF 2.5.post55__tar.gz → 2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyalf-2.6/PKG-INFO +143 -0
- {pyalf-2.5.post55 → pyalf-2.6}/README.md +3 -3
- pyalf-2.6/pyALF.egg-info/PKG-INFO +143 -0
- {pyalf-2.5.post55 → pyalf-2.6}/pyALF.egg-info/requires.txt +6 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/alf_source.py +2 -2
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/check_common.py +1 -1
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_test_branch.py +1 -1
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/minimal_ALF_run.py +1 -1
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/simulation.py +2 -2
- {pyalf-2.5.post55 → pyalf-2.6}/pyproject.toml +11 -5
- pyalf-2.5.post55/PKG-INFO +0 -478
- pyalf-2.5.post55/pyALF.egg-info/PKG-INFO +0 -478
- {pyalf-2.5.post55 → pyalf-2.6}/LICENSE +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/MANIFEST.in +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/pyALF.egg-info/SOURCES.txt +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/pyALF.egg-info/dependency_links.txt +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/pyALF.egg-info/entry_points.txt +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/pyALF.egg-info/top_level.txt +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/__init__.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/ana.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/analysis.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/check_rebin_ipy.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/check_rebin_tk.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/check_warmup_ipy.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/check_warmup_tk.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/__init__.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_bin_count.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_del_bins.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_postprocess.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_run.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/cli/alf_show_obs.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/exceptions.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/init_layout.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/lattice.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/lattices_armv8.4-a.so +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/lattices_x86-64.so +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/py_alf/utils.py +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/setup.cfg +0 -0
- {pyalf-2.5.post55 → pyalf-2.6}/tests/test_lattice_init.py +0 -0
pyalf-2.6/PKG-INFO
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyALF
|
|
3
|
+
Version: 2.6
|
|
4
|
+
Summary: Python interface for ALF, plus scripts and Jupyter notebooks.
|
|
5
|
+
Author-email: ALF Collaboration <alf@physik.uni-wuerzburg.de>, Jonas Schwab <jonas.schwab@uni-wuerzburg.de>
|
|
6
|
+
License-Expression: GPL-2.0-or-later
|
|
7
|
+
Project-URL: Documentation, https://alf.physik.uni-wuerzburg.de/pyalf-doc/
|
|
8
|
+
Project-URL: Repository, https://github.com/ALF-QMC/pyALF
|
|
9
|
+
Project-URL: Issues, https://github.com/ALF-QMC/pyALF/issues
|
|
10
|
+
Project-URL: ALF Homepage, https://alf.physik.uni-wuerzburg.de/
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: f90nml
|
|
17
|
+
Requires-Dist: h5py
|
|
18
|
+
Requires-Dist: ipympl
|
|
19
|
+
Requires-Dist: ipywidgets
|
|
20
|
+
Requires-Dist: matplotlib
|
|
21
|
+
Requires-Dist: numba
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Requires-Dist: pandas
|
|
24
|
+
Requires-Dist: scipy
|
|
25
|
+
Provides-Extra: gui
|
|
26
|
+
Requires-Dist: tkinter; extra == "gui"
|
|
27
|
+
Provides-Extra: doc
|
|
28
|
+
Requires-Dist: sphinxcontrib-svg2pdfconverter; extra == "doc"
|
|
29
|
+
Requires-Dist: jupyter-book<2.0; extra == "doc"
|
|
30
|
+
Requires-Dist: numpydoc; extra == "doc"
|
|
31
|
+
Requires-Dist: sphinx-argparse; extra == "doc"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
[](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF)
|
|
35
|
+
[<img src="https://img.shields.io/badge/Supported%20By-UNITARY%20FUND-brightgreen.svg?style=for-the-badge" alt="drawing" width="170"/>](https://unitary.fund)
|
|
36
|
+
|
|
37
|
+
## pyALF
|
|
38
|
+
|
|
39
|
+
A Python package building on top of [ALF](https://github.com/ALF-QMC/ALF), meant to simplify the different steps of working with ALF, including:
|
|
40
|
+
|
|
41
|
+
* Obtaining and compiling the ALF source code
|
|
42
|
+
* Preparing and running simulations
|
|
43
|
+
* Postprocessing and displaying the data obtained during the simulation
|
|
44
|
+
|
|
45
|
+
It introduces:
|
|
46
|
+
|
|
47
|
+
* The Python module `py_alf`, exposing all the package's utility to Python.
|
|
48
|
+
* A set of command line tools in the folder, that make it easy to leverage pyALF from a Unix shell.
|
|
49
|
+
They are automatically exposed to the shell when pyALF is installed via pip.
|
|
50
|
+
Their source code can be found in [py_alf/cli](py_alf/cli) and documentation
|
|
51
|
+
[here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF/source/reference/cli.html).
|
|
52
|
+
* Jupyter notebooks in the folder [Notebooks](Notebooks), serving as an easy introduction to QMC and ALF.
|
|
53
|
+
* Python Scripts in the folder [Scripts](Scripts) that can be run to reproduce benchmark results for established models.
|
|
54
|
+
|
|
55
|
+
The **documentation** can be found [here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF).
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
**⚠️ NOTE** In previous versions of pyALF, the installation instructions asked the users to set the environment variable `PYTHONPATH`.
|
|
61
|
+
This conflicts with the newer pip package, therefore you should remove definitions of this environment variable related to pyALF.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
pyALF can be installed via the Python package installer [pip](https://pip.pypa.io/en/stable/).
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install pyALF
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
For running ALF, you will additionaly need the [ALF prerequsites](https://github.com/ALF-QMC/ALF#prerequisites).
|
|
72
|
+
|
|
73
|
+
Alternatively, one could use [this Docker image](https://hub.docker.com/r/alfcollaboration/jupyter-pyalf-full), which has ALF, pyALF and a Jupyter server pre-installed.
|
|
74
|
+
|
|
75
|
+
### Development installation
|
|
76
|
+
|
|
77
|
+
If you want to develop pyALF, you can clone the repository and install it in
|
|
78
|
+
[development mode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html),
|
|
79
|
+
which allows you to edit the files while using them like an installed package.
|
|
80
|
+
For this, it is highly recommended to use a dedicated Python environment using e.g.
|
|
81
|
+
[Python venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/)
|
|
82
|
+
or a
|
|
83
|
+
[conda environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html).
|
|
84
|
+
The following example shows how to install pyALF in development mode using venv.
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git clone https://github.com/ALF-QMC/pyALF.git
|
|
88
|
+
cd pyALF
|
|
89
|
+
python -m venv .venv
|
|
90
|
+
source .venv/bin/activate
|
|
91
|
+
|
|
92
|
+
pip install --editable .
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
|
|
97
|
+
There are multiple ways to use pyALF, which roughly breaks down into three approaches:
|
|
98
|
+
* Using Jupyter notebooks
|
|
99
|
+
* Using the command line interface
|
|
100
|
+
* Use the module `py_alf` in custom scripts
|
|
101
|
+
|
|
102
|
+
### Jupyter notebooks
|
|
103
|
+
|
|
104
|
+
A convenient way to use pyALF is through Jupyter notebooks. They [are run](https://jupyter.readthedocs.io/en/latest/running.html) through a Jupyter server started, e.g., from the command line:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
jupyter-lab
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
or
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
jupyter-notebook
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
which opens the "notebook dashboard" in your default browser, from where one can open the sample notebooks in [Notebooks/](Notebooks) and create new notebooks.
|
|
117
|
+
|
|
118
|
+
### Command line interface
|
|
119
|
+
|
|
120
|
+
pyALF also delivers a set of command line scripts, to be use from a UNIX shell. For a full list of command line scripts see [here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF/source/reference/cli.html).
|
|
121
|
+
|
|
122
|
+
Try, e.g.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
alf_run -h
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The source code for the scripts can be found in the folder [py_alf/cli/](py_alf/cli).
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Use module `py_alf` in custom scripts
|
|
132
|
+
|
|
133
|
+
Finally, one can also use the module module `py_alf` in custom Python scripts, which is analogous to the usage in Jupyter notebooks minus some interactivity.
|
|
134
|
+
|
|
135
|
+
## License
|
|
136
|
+
|
|
137
|
+
The various works that make up the ALF project are placed under licenses that put
|
|
138
|
+
a strong emphasis on the attribution of the original authors and the sharing of the contained knowledge.
|
|
139
|
+
To that end we have placed the ALF source code under the GPL version 3 license (see license.GPL and license.additional)
|
|
140
|
+
and took the liberty as per GPLv3 section 7 to include additional terms that deal with the attribution
|
|
141
|
+
of the original authors(see license.additional).
|
|
142
|
+
The Documentation of the ALF project by the ALF contributors is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (see Documentation/license.CCBYSA)
|
|
143
|
+
We mention that we link against parts of lapack which licensed under a BSD license(see license.BSD).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## pyALF
|
|
5
5
|
|
|
6
|
-
A Python package building on top of [ALF](https://
|
|
6
|
+
A Python package building on top of [ALF](https://github.com/ALF-QMC/ALF), meant to simplify the different steps of working with ALF, including:
|
|
7
7
|
|
|
8
8
|
* Obtaining and compiling the ALF source code
|
|
9
9
|
* Preparing and running simulations
|
|
@@ -35,7 +35,7 @@ pyALF can be installed via the Python package installer [pip](https://pip.pypa.i
|
|
|
35
35
|
pip install pyALF
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
For running ALF, you will additionaly need the [ALF prerequsites](https://
|
|
38
|
+
For running ALF, you will additionaly need the [ALF prerequsites](https://github.com/ALF-QMC/ALF#prerequisites).
|
|
39
39
|
|
|
40
40
|
Alternatively, one could use [this Docker image](https://hub.docker.com/r/alfcollaboration/jupyter-pyalf-full), which has ALF, pyALF and a Jupyter server pre-installed.
|
|
41
41
|
|
|
@@ -51,7 +51,7 @@ or a
|
|
|
51
51
|
The following example shows how to install pyALF in development mode using venv.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
git clone https://
|
|
54
|
+
git clone https://github.com/ALF-QMC/pyALF.git
|
|
55
55
|
cd pyALF
|
|
56
56
|
python -m venv .venv
|
|
57
57
|
source .venv/bin/activate
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyALF
|
|
3
|
+
Version: 2.6
|
|
4
|
+
Summary: Python interface for ALF, plus scripts and Jupyter notebooks.
|
|
5
|
+
Author-email: ALF Collaboration <alf@physik.uni-wuerzburg.de>, Jonas Schwab <jonas.schwab@uni-wuerzburg.de>
|
|
6
|
+
License-Expression: GPL-2.0-or-later
|
|
7
|
+
Project-URL: Documentation, https://alf.physik.uni-wuerzburg.de/pyalf-doc/
|
|
8
|
+
Project-URL: Repository, https://github.com/ALF-QMC/pyALF
|
|
9
|
+
Project-URL: Issues, https://github.com/ALF-QMC/pyALF/issues
|
|
10
|
+
Project-URL: ALF Homepage, https://alf.physik.uni-wuerzburg.de/
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: f90nml
|
|
17
|
+
Requires-Dist: h5py
|
|
18
|
+
Requires-Dist: ipympl
|
|
19
|
+
Requires-Dist: ipywidgets
|
|
20
|
+
Requires-Dist: matplotlib
|
|
21
|
+
Requires-Dist: numba
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Requires-Dist: pandas
|
|
24
|
+
Requires-Dist: scipy
|
|
25
|
+
Provides-Extra: gui
|
|
26
|
+
Requires-Dist: tkinter; extra == "gui"
|
|
27
|
+
Provides-Extra: doc
|
|
28
|
+
Requires-Dist: sphinxcontrib-svg2pdfconverter; extra == "doc"
|
|
29
|
+
Requires-Dist: jupyter-book<2.0; extra == "doc"
|
|
30
|
+
Requires-Dist: numpydoc; extra == "doc"
|
|
31
|
+
Requires-Dist: sphinx-argparse; extra == "doc"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
[](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF)
|
|
35
|
+
[<img src="https://img.shields.io/badge/Supported%20By-UNITARY%20FUND-brightgreen.svg?style=for-the-badge" alt="drawing" width="170"/>](https://unitary.fund)
|
|
36
|
+
|
|
37
|
+
## pyALF
|
|
38
|
+
|
|
39
|
+
A Python package building on top of [ALF](https://github.com/ALF-QMC/ALF), meant to simplify the different steps of working with ALF, including:
|
|
40
|
+
|
|
41
|
+
* Obtaining and compiling the ALF source code
|
|
42
|
+
* Preparing and running simulations
|
|
43
|
+
* Postprocessing and displaying the data obtained during the simulation
|
|
44
|
+
|
|
45
|
+
It introduces:
|
|
46
|
+
|
|
47
|
+
* The Python module `py_alf`, exposing all the package's utility to Python.
|
|
48
|
+
* A set of command line tools in the folder, that make it easy to leverage pyALF from a Unix shell.
|
|
49
|
+
They are automatically exposed to the shell when pyALF is installed via pip.
|
|
50
|
+
Their source code can be found in [py_alf/cli](py_alf/cli) and documentation
|
|
51
|
+
[here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF/source/reference/cli.html).
|
|
52
|
+
* Jupyter notebooks in the folder [Notebooks](Notebooks), serving as an easy introduction to QMC and ALF.
|
|
53
|
+
* Python Scripts in the folder [Scripts](Scripts) that can be run to reproduce benchmark results for established models.
|
|
54
|
+
|
|
55
|
+
The **documentation** can be found [here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF).
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
**⚠️ NOTE** In previous versions of pyALF, the installation instructions asked the users to set the environment variable `PYTHONPATH`.
|
|
61
|
+
This conflicts with the newer pip package, therefore you should remove definitions of this environment variable related to pyALF.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
pyALF can be installed via the Python package installer [pip](https://pip.pypa.io/en/stable/).
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install pyALF
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
For running ALF, you will additionaly need the [ALF prerequsites](https://github.com/ALF-QMC/ALF#prerequisites).
|
|
72
|
+
|
|
73
|
+
Alternatively, one could use [this Docker image](https://hub.docker.com/r/alfcollaboration/jupyter-pyalf-full), which has ALF, pyALF and a Jupyter server pre-installed.
|
|
74
|
+
|
|
75
|
+
### Development installation
|
|
76
|
+
|
|
77
|
+
If you want to develop pyALF, you can clone the repository and install it in
|
|
78
|
+
[development mode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html),
|
|
79
|
+
which allows you to edit the files while using them like an installed package.
|
|
80
|
+
For this, it is highly recommended to use a dedicated Python environment using e.g.
|
|
81
|
+
[Python venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/)
|
|
82
|
+
or a
|
|
83
|
+
[conda environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html).
|
|
84
|
+
The following example shows how to install pyALF in development mode using venv.
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git clone https://github.com/ALF-QMC/pyALF.git
|
|
88
|
+
cd pyALF
|
|
89
|
+
python -m venv .venv
|
|
90
|
+
source .venv/bin/activate
|
|
91
|
+
|
|
92
|
+
pip install --editable .
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
|
|
97
|
+
There are multiple ways to use pyALF, which roughly breaks down into three approaches:
|
|
98
|
+
* Using Jupyter notebooks
|
|
99
|
+
* Using the command line interface
|
|
100
|
+
* Use the module `py_alf` in custom scripts
|
|
101
|
+
|
|
102
|
+
### Jupyter notebooks
|
|
103
|
+
|
|
104
|
+
A convenient way to use pyALF is through Jupyter notebooks. They [are run](https://jupyter.readthedocs.io/en/latest/running.html) through a Jupyter server started, e.g., from the command line:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
jupyter-lab
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
or
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
jupyter-notebook
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
which opens the "notebook dashboard" in your default browser, from where one can open the sample notebooks in [Notebooks/](Notebooks) and create new notebooks.
|
|
117
|
+
|
|
118
|
+
### Command line interface
|
|
119
|
+
|
|
120
|
+
pyALF also delivers a set of command line scripts, to be use from a UNIX shell. For a full list of command line scripts see [here](https://gitpages.physik.uni-wuerzburg.de/ALF/pyALF/source/reference/cli.html).
|
|
121
|
+
|
|
122
|
+
Try, e.g.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
alf_run -h
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The source code for the scripts can be found in the folder [py_alf/cli/](py_alf/cli).
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Use module `py_alf` in custom scripts
|
|
132
|
+
|
|
133
|
+
Finally, one can also use the module module `py_alf` in custom Python scripts, which is analogous to the usage in Jupyter notebooks minus some interactivity.
|
|
134
|
+
|
|
135
|
+
## License
|
|
136
|
+
|
|
137
|
+
The various works that make up the ALF project are placed under licenses that put
|
|
138
|
+
a strong emphasis on the attribution of the original authors and the sharing of the contained knowledge.
|
|
139
|
+
To that end we have placed the ALF source code under the GPL version 3 license (see license.GPL and license.additional)
|
|
140
|
+
and took the liberty as per GPLv3 section 7 to include additional terms that deal with the attribution
|
|
141
|
+
of the original authors(see license.additional).
|
|
142
|
+
The Documentation of the ALF project by the ALF contributors is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (see Documentation/license.CCBYSA)
|
|
143
|
+
We mention that we link against parts of lapack which licensed under a BSD license(see license.BSD).
|
|
@@ -40,13 +40,13 @@ class ALF_source:
|
|
|
40
40
|
to './ALF'.
|
|
41
41
|
branch : str, optional
|
|
42
42
|
If specified, this will be checked out by git.
|
|
43
|
-
url : str, default='https://
|
|
43
|
+
url : str, default='https://github.com/ALF-QMC/ALF.git'
|
|
44
44
|
Address from where to clone ALF if alf_dir does not exist.
|
|
45
45
|
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
def __init__(self, alf_dir=None, branch=None,
|
|
49
|
-
url='https://
|
|
49
|
+
url='https://github.com/ALF-QMC/ALF.git'):
|
|
50
50
|
if alf_dir is None:
|
|
51
51
|
alf_dir = os.getenv('ALF_DIR', './ALF')
|
|
52
52
|
self.alf_dir = os.path.abspath(os.path.expanduser(alf_dir))
|
|
@@ -39,7 +39,7 @@ def _get_bins(directory, names, custom_obs):
|
|
|
39
39
|
|
|
40
40
|
dtype, shape = custom_obs_get_dtype_shape(obs_spec, bins_raw)
|
|
41
41
|
del dtype
|
|
42
|
-
size = np.prod(shape)
|
|
42
|
+
size = 1 if not shape else np.prod(shape)
|
|
43
43
|
bins = np.empty((N_bins, size))
|
|
44
44
|
|
|
45
45
|
for i in range(N_bins):
|
|
@@ -15,7 +15,7 @@ from py_alf import ALF_source, Simulation
|
|
|
15
15
|
|
|
16
16
|
def _main():
|
|
17
17
|
# Create an instance of ALF_source, downloading the ALF source code from
|
|
18
|
-
# https://
|
|
18
|
+
# https://github.com/ALF-QMC/ALF, if ALF diretory does not exist.
|
|
19
19
|
# Gets ALF diretory from environment variable $ALF_DIR, or defaults to "./ALF",
|
|
20
20
|
# if not present.
|
|
21
21
|
alf_src = ALF_source()
|
|
@@ -466,7 +466,7 @@ def getenv(config, alf_dir='.'):
|
|
|
466
466
|
def compile_alf(alf_dir=None,
|
|
467
467
|
branch=None,
|
|
468
468
|
config='GNU noMPI',
|
|
469
|
-
url='https://
|
|
469
|
+
url='https://github.com/ALF-QMC/ALF.git',
|
|
470
470
|
verbosity=0
|
|
471
471
|
):
|
|
472
472
|
"""Compile ALF. Clone a new repository if alf_dir does not exist.
|
|
@@ -482,7 +482,7 @@ def compile_alf(alf_dir=None,
|
|
|
482
482
|
If specified, this will be checked out by git.
|
|
483
483
|
config : str, default='GNU noMPI'
|
|
484
484
|
Arguments for `configure.sh`.
|
|
485
|
-
url : str, default='https://
|
|
485
|
+
url : str, default='https://github.com/ALF-QMC/ALF.git'
|
|
486
486
|
Address from where to clone ALF if alf_dir not exists.
|
|
487
487
|
verbosity : int, default=0
|
|
488
488
|
0: Don't echo make reciepes.
|
|
@@ -17,12 +17,12 @@ authors = [
|
|
|
17
17
|
{ name="Jonas Schwab", email="jonas.schwab@uni-wuerzburg.de" },
|
|
18
18
|
]
|
|
19
19
|
description = "Python interface for ALF, plus scripts and Jupyter notebooks."
|
|
20
|
-
license =
|
|
20
|
+
license = "GPL-2.0-or-later"
|
|
21
|
+
license-files = ['LICENSE']
|
|
21
22
|
readme = "README.md"
|
|
22
23
|
requires-python = ">=3.7"
|
|
23
24
|
classifiers = [
|
|
24
25
|
"Programming Language :: Python :: 3",
|
|
25
|
-
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
|
|
26
26
|
"Operating System :: OS Independent",
|
|
27
27
|
]
|
|
28
28
|
dependencies = [
|
|
@@ -39,14 +39,20 @@ dependencies = [
|
|
|
39
39
|
|
|
40
40
|
[project.optional-dependencies]
|
|
41
41
|
GUI = ["tkinter"]
|
|
42
|
+
doc = [
|
|
43
|
+
"sphinxcontrib-svg2pdfconverter",
|
|
44
|
+
"jupyter-book<2.0",
|
|
45
|
+
"numpydoc",
|
|
46
|
+
"sphinx-argparse",
|
|
47
|
+
]
|
|
42
48
|
|
|
43
49
|
[tool.setuptools.packages.find]
|
|
44
50
|
include = ["py_alf", "py_alf.cli"]
|
|
45
51
|
|
|
46
52
|
[project.urls]
|
|
47
|
-
Documentation = "https://
|
|
48
|
-
Repository = "https://
|
|
49
|
-
Issues = "https://
|
|
53
|
+
Documentation = "https://alf.physik.uni-wuerzburg.de/pyalf-doc/"
|
|
54
|
+
Repository = "https://github.com/ALF-QMC/pyALF"
|
|
55
|
+
Issues = "https://github.com/ALF-QMC/pyALF/issues"
|
|
50
56
|
"ALF Homepage" = "https://alf.physik.uni-wuerzburg.de/"
|
|
51
57
|
|
|
52
58
|
[project.scripts]
|