Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README file #31

Merged
merged 323 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
323 commits
Select commit Hold shift + click to select a range
1aa9d29
Windows wheel
Apr 4, 2023
c1c9452
Skip existing wheels
Apr 4, 2023
ee9e0e3
Use prebuild docker img for windows
Apr 4, 2023
525bfdd
Windows wheels
Apr 4, 2023
3de7fde
skip win32 and pypy
Apr 5, 2023
8c38a5e
FFTW dir in windows build
Apr 7, 2023
84aa6dc
Compiler flags for HDF5 and fftw
Apr 7, 2023
b754b65
Use fftw only with ICS
Apr 7, 2023
eeecc43
Add swig
Apr 7, 2023
73e6404
Mask hdf5 dependency
Apr 7, 2023
4c2dd38
Mask hdf5
Apr 7, 2023
853add9
Fix if close
Apr 7, 2023
2220026
Hdf5 issue
Apr 7, 2023
31ce620
Static boost linking
Apr 7, 2023
5a07768
Windows boost linking
Apr 8, 2023
c63fbe8
win boost
Apr 8, 2023
12b346e
remove boost system
Apr 8, 2023
4d45d5e
static boost
Apr 8, 2023
9ff6f7f
boost exception issue
Apr 8, 2023
9f643f0
Use vcpkg on win
Apr 8, 2023
81bc3f2
Static boost builds
Apr 8, 2023
6d6f8ef
avoid boost
Apr 8, 2023
bc31589
Fix typo
Apr 8, 2023
ceab1b7
auto link
Apr 8, 2023
ea8742b
linking
Apr 8, 2023
05313f0
Build photon hdf by default
Apr 8, 2023
7bee06e
Remove openmp dependency
Apr 8, 2023
f6ac7b8
remove boost::filesystem and locale depency
Apr 8, 2023
c059236
remove boost:locale
Apr 8, 2023
b286540
Enable language
Apr 8, 2023
b67f246
remove vcpkg
Apr 8, 2023
8f66d4a
only boost header
Apr 8, 2023
93726ad
remove pip swig cmake boost
Apr 8, 2023
91fb210
add cmake
Apr 8, 2023
ef85e27
Use cmake findpython
Apr 9, 2023
469d4af
switch findpzthon3 for findpython
Apr 9, 2023
2cf90e5
Set DPython_ROOT_DIR in setup.py
Apr 9, 2023
4de0997
Add swig
Apr 9, 2023
c093af1
remove cmake swig
Apr 9, 2023
9a40314
remove cmake submodule
Apr 9, 2023
cf5b895
move cmake files from submodule to folder
Apr 9, 2023
65b565e
remove cmake submodule
Apr 9, 2023
184af2e
Add pocketfft
Apr 9, 2023
7b89150
Reduce boost dependency
Apr 11, 2023
005873d
Remove unused import
Apr 11, 2023
b8ec2c6
Move other peoples code to external
Apr 11, 2023
3ac2943
Move other peoples code to external
Apr 11, 2023
7b0ec1f
Move to external
Apr 11, 2023
2b48650
Refactoring
Apr 11, 2023
42dc389
refactor
Apr 11, 2023
0e86dd6
Add itlib
Apr 11, 2023
947e532
Restore
Apr 12, 2023
9a38aa5
Add aglib
Apr 12, 2023
0dc0a31
Add aglib
Apr 12, 2023
8024cda
Add optimization wrapper
Apr 12, 2023
91e6645
Add optimization wrapper
Apr 12, 2023
34ce0b0
Add msstl
Apr 12, 2023
e7b8153
use itlib flat_set
Apr 12, 2023
353252c
Cleanup
Apr 12, 2023
f75885e
Cleanup
Apr 12, 2023
4bfc7ad
bump version
Apr 12, 2023
522b0a1
separate external include files
Apr 12, 2023
9c33f8c
cleanup
Apr 12, 2023
1057819
Add documentation
Apr 12, 2023
6475c9d
win issue
Apr 12, 2023
082b024
Use BUILD_PYTHON_DOCS
Apr 12, 2023
3cee410
Win issue
Apr 12, 2023
72117c0
win build issue
Apr 12, 2023
6540cdb
Move external thirdparty code
Apr 13, 2023
a7593b1
Remove boost dependency
Apr 13, 2023
e3d916b
Static linking of boost
Apr 13, 2023
6626d0d
switch fftw for pocketfftw
Apr 18, 2023
8d7fe21
switch fftw for pocketfftw
Apr 18, 2023
1b3190c
fftw -> pocketfft
Apr 18, 2023
90b3c2e
Fix typos
Apr 19, 2023
472d20f
remove boost fftw
Apr 19, 2023
ab0c658
update license info
Apr 19, 2023
9f0265c
remote fftw
Apr 19, 2023
8cb33dc
cleanup namespace
Apr 20, 2023
4be5d81
Add windows wheel Dockerfile
Apr 20, 2023
0c7161f
Add wheel:win build
Apr 20, 2023
dc7a4e5
Remove unused config
Apr 20, 2023
cd31131
fix indentation
Apr 20, 2023
db7ccf9
Fix typo
Apr 20, 2023
5b7a7a9
use cmd.exe for wheel:win
Apr 20, 2023
d46cf60
use cmd for whee:win
Apr 20, 2023
20c15a8
Update .gitlab-ci.yml file
Apr 20, 2023
e4ec562
Update .gitlab-ci.yml file
Apr 20, 2023
5f1983e
Update .gitlab-ci.yml file
Apr 20, 2023
5840cf5
Update .gitlab-ci.yml file
Apr 20, 2023
52dd13e
Update .gitlab-ci.yml file
Apr 20, 2023
f7bd20b
Update .gitlab-ci.yml file
Apr 20, 2023
fdddefc
Update .gitlab-ci.yml file
Apr 20, 2023
58cf16c
Update .gitlab-ci.yml file
Apr 20, 2023
0737f63
Simplify test
Apr 20, 2023
01a8994
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
Apr 20, 2023
9876886
fix skip on linux
Apr 20, 2023
72f8431
fix wheel:win pypi upload
Apr 20, 2023
e55116d
Add pwsh to docker
Apr 21, 2023
fbd1776
Update .gitlab-ci.yml file
Apr 25, 2023
d08bf36
fix
Apr 26, 2023
57a3a4b
xx
Apr 26, 2023
fb358be
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
Apr 26, 2023
b828bab
ff
Apr 26, 2023
6d7a522
hfd
Apr 26, 2023
5140406
Update file .gitlab-ci.yml
Apr 26, 2023
18081c9
Update file pocketfft_hdronly.h
Apr 26, 2023
494d557
Add example writing CLSM data
Apr 27, 2023
1a440c4
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
Apr 27, 2023
0055a48
Windows
Apr 27, 2023
41bc98e
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
Apr 27, 2023
009ae71
new c++ on osx
May 1, 2023
e1da16e
Dynamic hdf5 lib
May 1, 2023
3c11405
fix call
May 1, 2023
6904bd3
wheel build
May 2, 2023
1c5e2bf
add header setter
May 2, 2023
6b309a2
doc fixes
May 2, 2023
4f9994e
add windows wheel
May 2, 2023
c3fd427
docs
May 2, 2023
4bf2a3b
docs
May 2, 2023
45da1d5
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
May 2, 2023
ec33cf4
add osx:wheel
May 2, 2023
028cf8a
macos wheel
May 3, 2023
d3131f3
osx fixes
May 3, 2023
2f3bee8
macos wheel
May 3, 2023
48a6cc2
use modern c++ on osx
May 3, 2023
f715f62
wheel osx fix
May 3, 2023
0d59db0
doc fix
May 3, 2023
d225cff
Fix badges and license
May 4, 2023
7af8c21
Removed TODO
May 4, 2023
f977e07
doc fixes
May 4, 2023
67175ff
DOC FIX
May 4, 2023
14e0cf4
Also upload development docs
May 4, 2023
c4ead09
doc build fix
May 4, 2023
1a1fe40
Docs buil
May 4, 2023
77b27eb
docs building
May 5, 2023
ac636b4
fix doc
May 5, 2023
f649ae1
fix doc
May 5, 2023
abf073a
Merge branch 'development' into 'master'
May 6, 2023
3ec3825
Redirect RTD page to docs
May 8, 2023
24fe901
Support more py versions
May 9, 2023
2a48168
Merge branch 'development' of https://gitlab.peulen.xyz/skf/tttrlib i…
May 9, 2023
1254f48
docs deposit
May 10, 2023
bd82f94
pin boost
May 10, 2023
fd78681
Update .gitlab-ci.yml file
Oct 17, 2023
b310722
Update .gitlab-ci.yml file
Oct 17, 2023
42838f1
Compile wheel for py311
Oct 18, 2023
d19b78f
Set min macos version
Oct 18, 2023
2b465d2
Update .gitlab-ci.yml
Oct 18, 2023
740934d
Update .gitlab-ci.yml
Oct 18, 2023
99279c4
Specify mmacosx version
Oct 22, 2023
58f7cc2
Update .gitlab-ci.yml
Oct 27, 2023
145f19c
Cleanup
Oct 31, 2023
7e3f884
Cleanup
Nov 3, 2023
38537c8
Add read clsm settings method
Nov 3, 2023
adc456e
Add mask flip
Dec 30, 2023
e6b8755
Fix typo
Dec 31, 2023
ecd9b34
Add option for mask
Dec 31, 2023
db658d9
Change default masking.
Dec 31, 2023
46fe4ca
Bump version
Dec 31, 2023
3cce031
Pypi 2fa requires tokens
Jan 3, 2024
e78c0ba
Update .gitlab-ci.yml file
Jan 3, 2024
475a5d8
Update .gitlab-ci.yml file
Jan 3, 2024
ca68b8b
Update .gitlab-ci.yml file
Jan 5, 2024
0840ca3
Update .gitlab-ci.yml file
Jan 6, 2024
1f9217b
Update .gitlab-ci.yml file
Jan 6, 2024
5b478f7
Update .gitlab-ci.yml file
Jan 6, 2024
13189c3
Update .gitlab-ci.yml file
Jan 6, 2024
27ffe01
Update .gitlab-ci.yml file
Jan 6, 2024
35dcbb4
Update .gitlab-ci.yml file
Jan 6, 2024
19f7903
Replace old np.float types
Jan 7, 2024
0b61580
Replace old np.float types
Jan 7, 2024
3139a60
Fix TTTRMask issue
Jan 7, 2024
a08f2b6
Improved documentation
Jan 8, 2024
50900f6
Separate doc from doc-tttrlib env
Jan 8, 2024
c957fbd
Fix typo
Jan 8, 2024
6b5f05c
Fix typo
Jan 8, 2024
348a449
Fix bixtex issue
Jan 8, 2024
0d34982
Fix doxygen issue
Jan 8, 2024
a4215f4
Bump version
Jan 8, 2024
455b3f5
Improve docstrings
Jan 8, 2024
cc9e5a5
Additional sphinx modules
Jan 8, 2024
5a70d49
Fix typo
Jan 8, 2024
f6f217a
Fix typo
Jan 8, 2024
31d2a08
Fix issue of deprecated std
Jan 8, 2024
6499f51
Remove missing sphinx-extension
Jan 8, 2024
4e16a96
Fix windows build
Jan 8, 2024
41e2cba
Fix doc deploy
Jan 9, 2024
d192d71
Fix doc deploy
Jan 9, 2024
1f68c16
Fix doc deploy
Jan 9, 2024
a3a89f0
Fix doc deploy
Jan 9, 2024
76249c3
Fix Pda histogram_function
Jan 9, 2024
32cbc8f
Merge branch 'master' into 'development'
Jan 9, 2024
0ef6300
fix wrong path
Jan 10, 2024
fe7d1d4
CI gitlab github sync
Jan 11, 2024
3b14a25
Fix doc issues
Jan 11, 2024
a810657
Add stubs for doc
Jan 11, 2024
8b48e25
Add stubs for doc
Jan 11, 2024
d970597
Fix wrong path
Jan 11, 2024
e16a996
Update .gitlab-ci.yml file
Jan 16, 2024
9d61c65
Update .gitlab-ci.yml file
Jan 16, 2024
74fb22a
Update .gitlab-ci.yml file
Jan 16, 2024
82d150c
Update .gitlab-ci.yml
Jan 17, 2024
e6aef92
Update pyproject.toml
Jan 19, 2024
e2b7a9c
Add github action
Jan 22, 2024
403355a
Remove gitlab webide config
Jan 22, 2024
4a69f6d
Remove gitlab webide config
Jan 22, 2024
8b5ca7b
Remove github action demo
Jan 22, 2024
947b3d5
Add Zeiss Confocor3 reader
Jan 30, 2024
44501c6
Fix set_header issue
Jan 30, 2024
3df1bc0
Add x, y attribute to Correlator.py
Jan 30, 2024
7264fd6
Also run Correlator when accessing axis
Jan 30, 2024
5697011
Add Confocor3 support
Jan 30, 2024
096d0ef
Add Confocor3 support
Jan 30, 2024
82f6d0d
Cleanup
Jan 30, 2024
1af7a3e
Cleanup
Jan 30, 2024
89af250
Fix wrong link
Jan 30, 2024
824c9c1
Remove old interface
Jan 30, 2024
de5ad96
Remove work in progress file
Jan 30, 2024
4af8da0
Fix plot
Jan 30, 2024
c851fc0
Fix plot
Jan 30, 2024
b6ca444
Fix typo
Jan 30, 2024
33b02ed
Fix file path
Jan 30, 2024
8e43c49
Fix plot
Jan 30, 2024
7196e75
Bump version
Jan 30, 2024
5638767
Build on all platforms
Jan 30, 2024
c7ddab1
Update plot
Jan 30, 2024
534871d
Update recipe
Jan 30, 2024
49f5bd7
Ignore .cache dir
Jan 30, 2024
6f747de
No gpg check on yum
Jan 30, 2024
15acea0
Fix header issue
Jan 30, 2024
2a49245
Build issues on Windows
Jan 30, 2024
0787e4f
Do not use git in conda builds
Jan 30, 2024
1b5ea49
Fix MY_INSTALL_PREFIX
Jan 30, 2024
f87f02d
Fix MY_INSTALL_PREFIX
Jan 30, 2024
02d7d3c
Fix MY_INSTALL_PREFIX
Jan 30, 2024
96a0767
Fix MY_INSTALL_PREFIX
Jan 30, 2024
cbfcb03
Fix MY_INSTALL_PREFIX
Jan 30, 2024
36d7118
Conda windows build issues
Jan 31, 2024
844f450
Conda windows build issues
Jan 31, 2024
b1cc41e
Conda windows build issues
Jan 31, 2024
b715c0a
Remove tools submodule
tpeulen Jan 31, 2024
568d52d
Add tools submodule
tpeulen Jan 31, 2024
bcb7c13
Merge branch 'master' into development
tpeulen Jan 31, 2024
90edbb9
Build conda package on linux
tpeulen Feb 1, 2024
d42ca6e
Build conda package on linux
tpeulen Feb 1, 2024
7184d6c
Add missing header file
tpeulen Feb 1, 2024
2fd8a61
Build windows and macOS on GitHub action
tpeulen Feb 1, 2024
02f9b57
Start with python 3.8
tpeulen Feb 1, 2024
a8aaa13
Update README and names
tpeulen Feb 5, 2024
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
43 changes: 43 additions & 0 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Conda Build

on:
push:
branches:
- development # You can change this to the branch you want to trigger on

jobs:
build-linux:
name: CondaBuild (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.11"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true

- name: Display Conda Settings
shell: bash -el {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort

- name: Build Conda Package
shell: bash -el {0}
run: |
mamba install conda-build boa
conda mambabuild conda-recipe
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist/
doc/auto_examples
tmp/
.vscode
.cache
.vs
.ipynb_checkpoints
cmake-build-*/
Expand Down
41 changes: 14 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,10 @@ variables:
GIT_SSL_NO_VERIFY: "1"

stages:
# - sync
- build
- test
- deploy

# github:push:
# stage: sync
# image: condaforge/mambaforge
# tags:
# - linux
# before_script:
# - git submodule update --init --recursive --remote
# script:
# - git switch -c ${CI_COMMIT_REF_NAME}
# - git push --force https://${GITHUB_TOKEN}@github.com/fluorescence-tools/imp.bff


# general definitions
.build: &build
stage: build
Expand Down Expand Up @@ -47,21 +34,21 @@ conda:build:lnx:x86:
- linux
- x86_64
conda:build:lnx:ppc64le:
<<: *conda_build_lnx
image:
entrypoint: [ "/bin/bash", "-i", "-c" ]
name: condaforge/linux-anvil-ppc64le
tags:
- linux
- ppc64le
<<: *conda_build_lnx
image:
entrypoint: [ "/bin/bash", "-i", "-c" ]
name: condaforge/linux-anvil-ppc64le
tags:
- linux
- ppc64le
conda:build:lnx:aarch64:
<<: *conda_build_lnx
image:
entrypoint: [ "/bin/bash", "-i", "-c" ]
name: condaforge/linux-anvil-aarch64
tags:
- linux
- aarch64
<<: *conda_build_lnx
image:
entrypoint: [ "/bin/bash", "-i", "-c" ]
name: condaforge/linux-anvil-aarch64
tags:
- linux
- aarch64

conda:build:osx:
<<: *conda_build_posix
Expand Down
145 changes: 93 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# tttrlib
[![Anaconda-Server Badge](https://anaconda.org/tpeulen/tttrlib/badges/version.svg)](https://anaconda.org/tpeulen/tttrlib)
[![PyPI version](https://badge.fury.io/py/tttrlib.svg)](https://pypi.org/project/tttrlib/)
[![pipeline status](https://gitlab.peulen.xyz/tpeulen/tttrlib/badges/master/pipeline.svg)](https://gitlab.peulen.xyz/tpeulen/tttrlib/badges/master/pipeline.svg)
![conda build](https://github.com/fluorescence-tools/tttrlib/actions/workflows/conda-build.yml/badge.svg)


## General description
tttrlib is a file format agnostic high performance library to
read and process time-tagged-time resolved (TTTR) data acquired by
read, process, and write time-tagged-time resolved (TTTR) data acquired by
PicoQuant (PQ) and Becker & Hickl measurement devices/cards or TTTR
files in the open Photon-HDF format.

Expand All @@ -25,10 +26,90 @@ Scilab and R. Currently, tttrlib is wrapped for the use in Python.

![tttrlib FLIM][3]

tttrlib is a library that facilitates the interaction with TTTR data that can be
used to develop data analysis pipelines e.g. for single-molecule and image
spectroscopy. tttrlib is not intended as end-user software for specific application
purposes.
`tttrlib` is programmed in C++ and wrapped for python. Thus, it can be used to integrate time-resolved data into
advanced data analysis pipelines.

### Capabilities

* Fast reading TTTR files (IO limited)
* Generation / analysis of fluorescence decays
* Time window analysis
* Correlation of time event traces
* Filtering of time event traces to generate instrument response functions for fluorescence decays analysis without the need of independent measurements..
* Fast photon distribution analysis
* Fast selection of photons from a photon stream

Generation of fluorescence decay histograms tttrlib outperforms pure numpy and Python based
libraries by a factor of ~40.

## Documentation

### Installation
In an [anaconda](https://www.anaconda.com/) environment the library can
be installed by the following command:

```console
conda install -c tpeulen tttrlib
```

Alternatively, you can use pip to install `tttrlib`

```console
pip install tttrlib
```

### Usage
The API of tttrlib as well as some use cases are documented on its [web page](https://docs.peulen.xyz/tttrlib).
Below you find a small selection of code snippets.

Access photon data as follows:
```python
import tttrlib
fn = 'photon_stream.ptu'
data = tttrlib.TTTR(fn)

macro_times = data.macro_times
micro_times = data.micro_times
routing_channels = data.routing_channels
```

Print header-information:
```python
import tttrlib
fn = 'photon_stream.ptu'
data = tttrlib.TTTR(fn)
print(data.json)
```

Correlate photon streams:
```python
import tttrlib
fn = 'photon_stream.ptu'
data = tttrlib.TTTR(fn)
correlator = tttrlib.Correlator(
channels=([1], [2]),
tttr=data
)
taus = correlator.x_axis,
correlation_amplitude = correlator.correlation
```

Create intensity images from CLSM data:
```python
import tttrlib
fn = 'image.ptu'
data = tttrlib.TTTR(fn)
clsm = tttrlib.CLSM(data)

channels = [0, 1]
prompt_range = [0, 16000]
clsm.fill(channels=channels, micro_time_ranges=[prompt_range])

intensity_image = clsm.intensity
```

tttrlib is in active development. In case you notice unusual behaviour do not
hesitate to contact the authors.

## Supported file formats

Expand All @@ -44,27 +125,9 @@ purposes.
### Photon HDF5

## Design goals
* Low memory footprint (keep objective large datasets, e.g. FLIM in memory).
* Low memory footprint (keep objective large datasets, e.g., FLIM in memory).
* Platform independent C/C++ library with interfaces for scripting libraries

## Capabilities

* Fast (IO limited) Reading TTTR files
* Generation / analysis of fluorescence decays
* Time window analysis
* Correlation of time event traces
* Filtering of time event traces to generate instrument response functions for fluorescence decays analysis without the need of independent measurements..
* Fast photon distribution analysis
* Fast selection of photons from a photon stream

Generation of fluorescence decay histograms tttrlib outperforms pure numpy and Python based
libraries by a factor of ~40.

## Implementation

Pure pure C/C++ high performance algorithms for real-time and interactive
analysis of TTTR data.

## Building and Installation

### C++ shared library
Expand All @@ -78,7 +141,7 @@ cmake ..
sudo make install
```

On Linux you can build and install a package instead (prefered):
On Linux you can build and install a package instead:

### Python bindings

Expand All @@ -100,40 +163,18 @@ be installed by the following command:
conda install -c tpeulen tttrlib
```

For most users the later approach is recommended. Currently, pre-compiled
For most users, the latter approach is recommended. Currently, pre-compiled
packages for the anaconda distribution system are available for Windows (x86),
Linux (x86, ARM64, PPCle), and macOS (x86). Precompiled libary are linked against
conda-forge HDF5 & Boost. Thus, the use of [miniforge](https://github.com/conda-forge/miniforge)
is highly recommended.
is recommended.

Legacy 32-bit platforms and versions of programming languages, e.g., Python 2.7
are not supported.

### Pip install

Ubuntu:

Self compiled

```console
sudo apt-get install libhdf5-dev boost-dev swig
```

```console
pip install https://github.com/fluorescence-tools/tttrlib
```

## Documentation

The API of tttrlib as well as some use cases are documented
on its [web page](https://docs.peulen.xyz/tttrlib)

Note, tttrlib is highly experimental library in current development. In
case you notice unusual behaviour do not hesitate to contact the authors.

## License

Copyright 2007-2023 tttrlib developers.
Copyright 2007-2024 tttrlib developers.
Licensed under the BSD-3-Clause

[3]: https://docs.peulen.xyz/tttrlib/_images/sphx_glr_plot_read_clsm_data_002.png "tttrlib FLIM"
[3]: https://github.com/fluorescence-tools/tttrlib/doc/logos/mashup.png "tttrlib FLIM"
14 changes: 9 additions & 5 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cd %SRC_DIR%
git submodule update --recursive --init --remote

echo "Build app wrapper"
:: build app wrapper
Expand All @@ -10,20 +9,25 @@ if errorlevel 1 exit 1
rmdir b2 /s /q
mkdir b2
cd b2
for /f %%A in ('python -c "import platform; print(platform.python_version())"') do set python_version=%%A
echo Python version: %python_version%

REM Call Python with the --version flag to get the version information
for /f "tokens=2 delims= " %%v in ('%PYTHON% --version 2^>^&1') do set PYTHON_VERSION=%%v

REM Extract only the numeric part of the version
for /f "tokens=1-3 delims=." %%a in ("%PYTHON_VERSION%") do set PYTHON_VERSION_NUMERIC=%%a.%%b.%%c

echo Python version: %PYTHON_VERSION_NUMERIC%
cmake .. -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH="%PREFIX%" ^
-DBUILD_PYTHON_INTERFACE=ON ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="%SP_DIR%" ^
-DCMAKE_SWIG_OUTDIR="%SP_DIR%" ^
-DPYTHON_VERSION="%python_version%" ^
-DPYTHON_VERSION="%PYTHON_VERSION_NUMERIC%" ^
-DBUILD_LIBRARY=ON
nmake install


:: Add wrappers to path for each Python command line tool
:: (all files without an extension)
cd %SRC_DIR%\bin
Expand Down
1 change: 0 additions & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
git submodule update --recursive --init --remote
mkdir b2 && cd b2

if [[ "${target_platform}" == osx-* ]]; then
Expand Down
Loading
Loading