Skip to content

Commit

Permalink
🧪test consolidation and pint compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Leaver committed Jun 17, 2024
1 parent adfcd56 commit 2b58c1c
Show file tree
Hide file tree
Showing 15 changed files with 416 additions and 59,919 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Attach
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializers: AfterColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: false
ColumnLimit: 99 # MARK: Adjustable
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ testpaths = ["tests/"]
markers = [
"self: this is a flag to target a specifc test",
"ccl: test functions for convective condensation level",
"moist_lapse",
"downdraft_cape",
# "lcl: test functions for lifting condensation level",
"lfc: test functions for level of free convection",
"el: test functions for equilibrium level",
Expand Down
4 changes: 2 additions & 2 deletions src/include/libthermo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class lcl {
constexpr lcl<T>& operator=(const lcl<T>& other) noexcept = default;
// destructor
~lcl() noexcept = default;
constexpr lcl(const T pressure, const T temperature) noexcept
: pressure(pressure), temperature(temperature){};
constexpr lcl(const T pressure, const T temperature) noexcept :
pressure(pressure), temperature(temperature){};

constexpr lcl(
const T pressure,
Expand Down
1 change: 1 addition & 0 deletions src/nzthermo/_C.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cython: boundscheck=False
# pyright: reportGeneralTypeIssues=false

ctypedef fused Float:
Expand Down
2 changes: 1 addition & 1 deletion src/nzthermo/_core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ OPENMP_ENABLED = bool(OPENMP)
# ............................................................................................... #
# helpers
# ............................................................................................... #
cdef cvarray nzarray((size_t, size_t) shape, size_t size) noexcept:
cdef cvarray nzarray((size_t, size_t) shape, size_t size):
return cvarray(
shape,
itemsize=size,
Expand Down
334 changes: 0 additions & 334 deletions src/nzthermo/_types.pyi

This file was deleted.

Loading

0 comments on commit 2b58c1c

Please sign in to comment.