-
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.
refactor python api to be consistent with docs (#26)
* introduce lib date-tz by cmake/HHinnatDate.cmake * for using the library date-tz, change cflags to c++17 and use runner windows-2022 * manually download tzdata for Windows * separate header files * Rename: Analyzer -> Algorithm, SPA_Analyzer -> SPACalculator * reimplemented fseg._analyzer.py and backend Algorithm & SPACalculator * update docstring * use cross-reference in docs/**/*.md * use toml recording case data * add foo algorithm for testing Co-authored-by: mikesongming <mikesongming@users.noreply.github.com> Co-authored-by: Mike Song <mikesongming@gmail.com>
- Loading branch information
1 parent
a470f23
commit 5d86e3b
Showing
38 changed files
with
941 additions
and
537 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
simplify python frontend api by refactoring c++ backend with pybind11-empowered virtual function overriding and methods overloading |
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 @@ | ||
update flow graph in dev-guid.md and docstring in _analyzer.py |
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,2 @@ | ||
Introduce cmake module to fetch library pybind11 and date-tz; Modify setup.py to support c++17 on MacOSX >= 10.12; | ||
and Build windows version on Windows-2022 with manually downloaded tzdata |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
include CMakeLists.txt | ||
recursive-include src * | ||
recursive-include cmake * | ||
recursive-exclude src/python */__pycache__/* |
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,6 @@ | ||
include(FetchContent) | ||
FetchContent_Declare(pybind11 | ||
GIT_REPOSITORY https://github.com/pybind/pybind11.git | ||
GIT_TAG v2.9.2 | ||
) | ||
FetchContent_MakeAvailable(pybind11) |
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,13 @@ | ||
set(USE_SYSTEM_TZ_DB ON CACHE INTERNAL "") | ||
set(BUILD_SHARED_LIBS ON CACHE INTERNAL "") | ||
set(BUILD_TZ_LIB ON CACHE INTERNAL "") | ||
|
||
# switch off C++17 uncaught_exceptions | ||
# add_compile_definitions(HAS_UNCAUGHT_EXCEPTIONS=FALSE) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare(howard_hinnant_date | ||
GIT_REPOSITORY https://github.com/HowardHinnant/date.git | ||
GIT_TAG v3.0.1 | ||
) | ||
FetchContent_MakeAvailable(howard_hinnant_date) |
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
Oops, something went wrong.