Skip to content

Commit

Permalink
ci: update to numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Barrow committed Jun 21, 2024
1 parent 4b9f50a commit 7a6094a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "tangy"
version = "0.5.3"
version = "0.5.4"
description = "Timetag analysing library"
authors = [
{name = "Peter Thomas Barrow", email = "peter.barrow.93@gmail.com"}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
os.path.join(cython_dir, "_tangy.py"),
],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')],
include_dirs=[get_include(), cython_dir + "./src"],
include_dirs=[get_include(), cython_dir + "/src"],
extra_compile_args=compiler_flags,
extra_link_args=link_args,
optional=os.environ.get('CIBUILDWHEEL', '0') != '1',
Expand Down
3 changes: 3 additions & 0 deletions tangy_src/src/picoquant_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,19 @@ Parse_HH2_T2(u32 record, Record_HH2_T2* Rec_struct, res* out) {
};

if ((ch >= 1) & (ch <= 15)) {
// marker
tt += out->overflow;
++photon;
};
if (ch == 0) {
// sync
tt += out->overflow;
++photon;
};
};

} else {
// photon
tt += out->overflow;
++photon;
ch += 1;
Expand Down

0 comments on commit 7a6094a

Please sign in to comment.