-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Patrick <[email protected]> Co-authored-by: JulianHeymes <[email protected]>
- Loading branch information
1 parent
7d6223d
commit dadf5f4
Showing
55 changed files
with
2,924 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build pkgs and deploy if on main | ||
|
||
on: | ||
push: | ||
branches: | ||
- developer | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, ] # macos-12, windows-2019] | ||
python-version: ["3.12",] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
# The setup-miniconda action needs this to activate miniconda | ||
defaults: | ||
run: | ||
shell: "bash -l {0}" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get conda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
|
||
- name: Prepare | ||
run: conda install conda-build=24.9 conda-verify pytest anaconda-client | ||
|
||
- name: Disable upload | ||
run: conda config --set anaconda_upload no | ||
|
||
- name: Build | ||
run: conda build conda-recipe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ClusterFinderMT | ||
================== | ||
|
||
|
||
.. doxygenclass:: aare::ClusterFinderMT | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ClusterVector | ||
================ | ||
|
||
The ClusterVector, holds clusters from the ClusterFinder. Since it is templated | ||
in C++ we use a suffix indicating the data type in python. The suffix is | ||
``_i`` for integer, ``_f`` for float, and ``_d`` for double. | ||
|
||
At the moment the functionality from python is limited and it is not supported | ||
to push_back clusters to the vector. The intended use case is to pass it to | ||
C++ functions that support the ClusterVector or to view it as a numpy array. | ||
|
||
**View ClusterVector as numpy array** | ||
|
||
.. code:: python | ||
from aare import ClusterFile | ||
with ClusterFile("path/to/file") as f: | ||
cluster_vector = f.read_frame() | ||
# Create a copy of the cluster data in a numpy array | ||
clusters = np.array(cluster_vector) | ||
# Avoid copying the data by passing copy=False | ||
clusters = np.array(cluster_vector, copy = False) | ||
.. py:currentmodule:: aare | ||
.. autoclass:: ClusterVector_i | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
Fit | ||
======== | ||
|
||
.. py:currentmodule:: aare | ||
**Functions** | ||
|
||
.. autofunction:: gaus | ||
|
||
.. autofunction:: pol1 | ||
|
||
|
||
**Fitting** | ||
|
||
.. autofunction:: fit_gaus | ||
|
||
.. autofunction:: fit_pol1 |
Oops, something went wrong.