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

V1.3dev add cmake system redo #8

Open
wants to merge 2,033 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2033 commits
Select commit Hold shift + click to select a range
e8a94c5
Updates to ModelFromGEO.
ryanmaguire Nov 21, 2019
4dd31b2
Adding test data for CompareTAU and CRing Ripples.
ryanmaguire Dec 1, 2019
f7165e1
Updated figures for ModelFromGEO.
ryanmaguire Dec 1, 2019
b0bd2b0
Added Perturbed Newton method, and new tests.
ryanmaguire Dec 1, 2019
998b493
Some small fixes.
ryanmaguire Dec 1, 2019
38c8305
Fixed the plot appearance.
ryanmaguire Dec 1, 2019
6f3ec5a
Updates to the polynomial calculations.
ryanmaguire Dec 17, 2019
fd99c95
Stuff for MTR Fig 4.
ryanmaguire Dec 17, 2019
a932a8a
Added MTR polynomials.
ryanmaguire Dec 29, 2019
b1d4b89
Moved various error checks to the C level.
ryanmaguire Dec 29, 2019
09303d0
MTR polynomials in C.
ryanmaguire Dec 29, 2019
fd2ac01
Updated some of the mathematical functions.
ryanmaguire Dec 29, 2019
c3be57f
Updating header files.
ryanmaguire Dec 29, 2019
00578dd
Adding MTR polynomials.
ryanmaguire Dec 29, 2019
c5a7d7b
Added MTR Fig 4 and 5.
ryanmaguire Dec 29, 2019
24d9eb1
Some more updates.
ryanmaguire Dec 31, 2019
c2efada
General updates and organization changes.
ryanmaguire Jan 1, 2020
3b734c9
Updated MTR figures.
ryanmaguire Jan 1, 2020
df8837a
Rearranging some files.
ryanmaguire Mar 16, 2020
c478747
Cleanup and Uranus data.
ryanmaguire Mar 17, 2020
768d91e
Some more cleanup.
ryanmaguire Mar 17, 2020
3bc033c
Added/updated error check for data range.
ryanmaguire Jul 28, 2020
a62d263
Updated Legendre function to include error checks.
ryanmaguire Jul 28, 2020
d5687ea
Added error checks to perturbed Newton and Ellipse.
ryanmaguire Jul 29, 2020
ab72f9c
Small fix to include statements.
ryanmaguire Jul 29, 2020
1f08182
Added FFT Functionality (still testing)
ryanmaguire Aug 22, 2020
1fbf854
Updated API. Stiil need to update linking later.
ryanmaguire Aug 23, 2020
748089e
Reorganizing and cleaning. Still needs some fixing.
ryanmaguire Aug 24, 2020
4f3de35
Fixed incorrect data type declarations.
ryanmaguire Aug 24, 2020
37ae12c
Moved string parsing to special_functions.c.
ryanmaguire Aug 24, 2020
1e0820e
Major updates for v1.3
ryanmaguire Nov 2, 2020
23f9063
Reorganizing some of the complex functions.
ryanmaguire Nov 12, 2020
bf13c90
Removing compiled file.
ryanmaguire Nov 12, 2020
be516f2
Fixed typo.
ryanmaguire Nov 12, 2020
4cf26c8
Adding comments, examples, and general updates.
ryanmaguire Nov 13, 2020
e263886
Reorganizing how #include works.
ryanmaguire Nov 14, 2020
2a1b22e
Adding example code.
ryanmaguire Nov 14, 2020
011a771
Adding examples and updating some code.
ryanmaguire Nov 17, 2020
e4f70b5
Fixing some math stuff and adding geometry functions.
ryanmaguire Nov 21, 2020
36410c5
Adding more examples and numerical routines.
ryanmaguire Nov 24, 2020
6fde1d4
Added plotting routine for complex cosine
ryanmaguire Nov 24, 2020
31dd361
Messing around with erf(z).
ryanmaguire Nov 26, 2020
f0f7d5b
Moved C code to standalone directory.
ryanmaguire Nov 27, 2020
d03a52f
Some more updates.
ryanmaguire Nov 27, 2020
5f6df02
Added plotting routines.
ryanmaguire Nov 27, 2020
26dfdf3
Added Faddeeva function.
ryanmaguire Nov 28, 2020
c0ab434
Made Faddeeva function C89/C90 compliant.
ryanmaguire Nov 28, 2020
b9da953
More updates.
ryanmaguire Nov 28, 2020
3201806
Fixed typo.
ryanmaguire Nov 28, 2020
601f823
Fixed major typo and added more examples.
ryanmaguire Nov 29, 2020
3368e9e
Adding back fresnel kernel functions.
ryanmaguire Nov 29, 2020
6c2a8fa
Fixed some examples.
ryanmaguire Nov 29, 2020
394e0d6
Added float and long double complex support.
ryanmaguire Dec 2, 2020
726f5ba
Changed prefix to function names.
ryanmaguire Dec 2, 2020
e28a1b8
Startinf code freeze for v1.3
ryanmaguire Dec 3, 2020
26e6ea2
Added C-IDL example.
ryanmaguire Dec 3, 2020
1c8c8d0
Added error check.
ryanmaguire Dec 3, 2020
712eb13
Fixed rssringoccs_NaN
ryanmaguire Dec 4, 2020
621ba11
Trying librssringoccs with gcc-10.
ryanmaguire Dec 4, 2020
4afb46d
Adding better float/long double support.
ryanmaguire Dec 4, 2020
cfc8e46
Messing around with header files.
ryanmaguire Dec 5, 2020
9a00152
Adding float and long double macros.
ryanmaguire Dec 7, 2020
890f6da
Updating math library.
ryanmaguire Dec 9, 2020
1512086
More updates for v1.3.
ryanmaguire Dec 10, 2020
2de6fc3
More updates.
ryanmaguire Dec 10, 2020
835edaa
Updating docstring.
ryanmaguire Dec 10, 2020
46cbb9e
Adding more examples.
ryanmaguire Dec 11, 2020
0d51ce9
Adding more tests.
ryanmaguire Dec 11, 2020
715a13d
Updating docstrings.
ryanmaguire Dec 11, 2020
6f33736
Adding more examples.
ryanmaguire Dec 12, 2020
8275523
Lots of updates.
ryanmaguire Dec 13, 2020
efa2bba
Updating Python API code.
ryanmaguire Dec 13, 2020
fa6b3e8
Updating Python API stuff.
ryanmaguire Dec 15, 2020
f7e3388
Fixing examples to use new code.
ryanmaguire Dec 15, 2020
fdc7f44
Updating reconstruction code.
ryanmaguire Dec 15, 2020
19844ee
Updating fresnel transforms to C89 compliant code.
ryanmaguire Dec 16, 2020
5866983
Updating diffraction correction.
ryanmaguire Dec 16, 2020
857b863
Updating API code.
ryanmaguire Dec 17, 2020
4a23283
Updating tests.
ryanmaguire Dec 17, 2020
d2b9429
Adding examples and fixed complex exp with inf argument
ryanmaguire Dec 19, 2020
d55ff84
Adding more tests.
ryanmaguire Dec 20, 2020
0b8675f
Updating geometry routines.
ryanmaguire Dec 21, 2020
65d037d
Updating comments and adding more examples.
ryanmaguire Dec 22, 2020
dd72274
More examples and comments.
ryanmaguire Dec 22, 2020
6b27246
Adding more examples.
ryanmaguire Dec 22, 2020
470a3cd
Adding more tests and comments.
ryanmaguire Dec 22, 2020
5b5809f
Updating doc string.
ryanmaguire Dec 22, 2020
8996d06
Adding examples for complex argument.
ryanmaguire Dec 22, 2020
09176bc
Adding more tests.
ryanmaguire Dec 22, 2020
2bfae0e
Fixed small typo in doc strings.
ryanmaguire Dec 23, 2020
0fe30e2
Adding more examples and tests.
ryanmaguire Dec 23, 2020
5d0a6dd
Fixing types and adding tests.
ryanmaguire Dec 23, 2020
8083ae0
Adding comments and tests.
ryanmaguire Dec 24, 2020
eec3491
Adding more examples.
ryanmaguire Dec 24, 2020
b4838b6
Some fixes for compiling with GNU's gcc.
ryanmaguire Dec 25, 2020
5a3040a
Updating comments for erfc function.
ryanmaguire Dec 27, 2020
51e1d1d
Adding comments and tests.
ryanmaguire Dec 27, 2020
26e9759
Updating tests and fixing typos.
ryanmaguire Dec 28, 2020
e6fce45
Fixed typo in erf and adding tests.
ryanmaguire Dec 29, 2020
6761641
Added csv reader for GEO files.
ryanmaguire Dec 31, 2020
fd4d7ae
Updating CSV Readers.
ryanmaguire Dec 31, 2020
0e8401e
Fixed small typo.
ryanmaguire Jan 1, 2021
36ab71f
Updating CSV tools.
ryanmaguire Jan 1, 2021
a707d6e
Updating CSV Reader.
ryanmaguire Jan 1, 2021
bbdda12
Fixing diffraction correction class.
ryanmaguire Jan 1, 2021
9fb515e
Working on the reconstruction stuff.
ryanmaguire Jan 3, 2021
0d4d53e
Updating reconstruction routines.
ryanmaguire Jan 3, 2021
f0b76bc
Major updates to reconstruction routines.
ryanmaguire Jan 4, 2021
927496d
Updating reconstruction routines.
ryanmaguire Jan 5, 2021
cb67863
Merged rss_ringoccs and rss_uringoccs.
ryanmaguire Jan 5, 2021
7337124
Updating reconstruction routines.
ryanmaguire Jan 5, 2021
086bbd9
Updated config script.
ryanmaguire Jan 5, 2021
d341f4d
Lots of updates.
ryanmaguire Jan 6, 2021
6f46d33
Adding back CompareTau class.
ryanmaguire Jan 6, 2021
761e4a1
Updates.
ryanmaguire Jan 7, 2021
0fdd385
Fixing gcc warning.
ryanmaguire Jan 7, 2021
c143144
Added dD/dphi algorithm.
ryanmaguire Jan 7, 2021
be8f2b8
Added elliptical routine.
ryanmaguire Jan 8, 2021
0149c6c
Updated comment.
ryanmaguire Jan 8, 2021
89b7445
Updating reconstruction routines.
ryanmaguire Jan 8, 2021
15b5444
Fixing FFT routines.
ryanmaguire Jan 9, 2021
d630a6b
Added back various reconstruction methods.
ryanmaguire Jan 10, 2021
52c33b9
Fixed quadratic interpolation method.
ryanmaguire Jan 10, 2021
9bab4df
Added another example.
ryanmaguire Jan 10, 2021
4ee4317
Removing rst files from doc directory.
ryanmaguire Jan 10, 2021
3aebeb4
Final updates before v1.3-beta.
ryanmaguire Jan 11, 2021
baeac41
Final updates before v1.3-beta.
ryanmaguire Jan 11, 2021
72fb359
Updating config script.
ryanmaguire Jan 11, 2021
3436cf8
Merge pull request #5 from NASA-Planetary-Science/v1.3-dev
ryanmaguire Jan 11, 2021
5da023a
Updated GetUranusData reader.
ryanmaguire Jan 11, 2021
6aa08fc
UPdated readme and releasenotes.
ryanmaguire Jan 12, 2021
40c7b03
Merge pull request #6 from NASA-Planetary-Science/master
ryanmaguire Jan 12, 2021
2970e5d
Updating write_files option.
ryanmaguire Jan 12, 2021
60f4dcf
Added error logs to shell scripts.
ryanmaguire Jan 12, 2021
9455026
Updated for write_files option with DiffractionCorrection class.
ryanmaguire Jan 12, 2021
3d12fe1
Changed 'PyBytes_FromString' to 'PyUnicode_FromString'
ryanmaguire Jan 12, 2021
acf6f51
Updated CSV reader for Ingress occultations.
ryanmaguire Jan 12, 2021
9ab2cd1
Fixed bug with newtondphi reconstruction.
ryanmaguire Jan 13, 2021
2c8fba3
Minor fix.
ryanmaguire Jan 13, 2021
944009a
Adding examples.
ryanmaguire Jan 13, 2021
99335ac
Converting RSR reader to C.
ryanmaguire Jan 14, 2021
a8a1cc8
Adding comments.
ryanmaguire Jan 14, 2021
023fd0d
Adding comments.
ryanmaguire Jan 15, 2021
e14b23a
Adding an example.
ryanmaguire Jan 20, 2021
35c7713
Changed pixel-width in plot.
ryanmaguire Jan 20, 2021
2a0af4f
Adding another example.
ryanmaguire Jan 22, 2021
eacd7d4
Merge branch 'v1.3-dev' of https://github.com/NASA-Planetary-Science/…
ryanmaguire Jan 22, 2021
ec59740
Messing around with IEEE754 format.
ryanmaguire Jan 23, 2021
5908653
Added include guard.
ryanmaguire Jan 23, 2021
97cd619
Added 32-bit versions of log.
ryanmaguire Jan 23, 2021
9c2282c
Working on linear algebra tools.
ryanmaguire Jan 31, 2021
3e47d1b
Fixed typo.
ryanmaguire Mar 5, 2021
9b6053a
Migrating lots of code. Build currently fails.
ryanmaguire May 4, 2021
948dd5c
More updates.
ryanmaguire May 4, 2021
9dc55f3
Updates.
ryanmaguire May 4, 2021
d6e5b4e
Moving IDL examples.
ryanmaguire May 27, 2021
a25c9b9
Updating CSV tools/
ryanmaguire Jun 4, 2021
56579fe
Merge branch 'v1.3-dev' of https://github.com/NASA-Planetary-Science/…
ryanmaguire Jun 4, 2021
7252ab6
Some more updates.
ryanmaguire Jun 7, 2021
51cbc58
Updating fresnel kernel functions.:
ryanmaguire Jun 8, 2021
b92fb2d
Removed old functions from header.
ryanmaguire Jun 8, 2021
8c0feb4
Updating function names.
ryanmaguire Jun 8, 2021
c96ecf6
Incorporating libtmpl into code.
ryanmaguire Jun 8, 2021
9b88cfb
Migrating code to use libtmpl.
ryanmaguire Jun 10, 2021
be10e9b
Lots of updates for next release.
ryanmaguire Jun 10, 2021
abfea55
Fixed stupid mistakes because I do dumb things sometimes.
ryanmaguire Jun 10, 2021
35ac53e
Updating RSR header file.
ryanmaguire Jun 12, 2021
8e14a63
Updates for CSV tools.
ryanmaguire Jun 14, 2021
4175ecd
Fixed typo.
ryanmaguire Feb 9, 2022
d468e95
Updating some C stuff.
ryanmaguire Feb 13, 2022
410edb4
Updating old tests.
ryanmaguire Feb 14, 2022
9c4cc57
Fixing tests.
ryanmaguire Feb 14, 2022
04ae0c8
Fixing stuff.
ryanmaguire Feb 15, 2022
8e417c4
Some updates.
ryanmaguire Mar 3, 2022
d6416a2
Updating CSV tools.
ryanmaguire Mar 5, 2022
69cfbb7
Updates to CSV tools.
ryanmaguire Mar 6, 2022
96925f8
Some updates.
ryanmaguire Mar 11, 2022
a861d03
Adding Makefile for C code.
ryanmaguire Sep 15, 2022
8db19b7
Some minor changes.
ryanmaguire Sep 15, 2022
a7fda72
Changed mod to 644 instead of 751
ryanmaguire Sep 22, 2022
efbaf72
Updating layout.
ryanmaguire Sep 28, 2022
fc7aa5a
Updating tmpl functions.
ryanmaguire Nov 11, 2022
1336499
Merge branch 'v1.3-dev' of https://github.com/NASA-Planetary-Science/…
ryanmaguire Nov 11, 2022
e06c654
Removing redundant max call.
ryanmaguire Nov 11, 2022
6abf834
Changed unsigned long to size_t to increase portability.
ryanmaguire Nov 15, 2022
565c998
Merging libtmpl updates.
ryanmaguire Dec 20, 2022
93db869
Incorporating changes to libtmpl into header file.
ryanmaguire Jan 3, 2023
25f2100
Fixing includes.
ryanmaguire Jan 31, 2023
9421640
Updates.
ryanmaguire Jan 31, 2023
17adc28
Adding back occgeo header.
ryanmaguire Jan 31, 2023
eb9e768
Allowing extra flags for linker and compiler in Makefile.
ryanmaguire Feb 3, 2023
da3bafc
Making setup.py work with pip.
ryanmaguire Feb 3, 2023
e386f2d
Updating FFT calls to incorporate new libtmpl routines.
ryanmaguire Feb 12, 2023
1e071c1
Moving fresnel kernel to libtmpl. Added float and long double support…
ryanmaguire Mar 28, 2023
58701ae
Updating for the changes made to libtmpl.
ryanmaguire Mar 28, 2023
713794b
Fixed fatal typo for simpleFFT method.
ryanmaguire Mar 28, 2023
b472a46
Changed newton routines to reflect libtmpl changes.
ryanmaguire Mar 28, 2023
7491521
Updated interpolation routines. Still some changes to make.
ryanmaguire Mar 28, 2023
ecff4e4
Updates to rsr_reader to work with modern Python.
RichardGFrench Mar 28, 2023
cebde2d
Ignore the .idea folder
tcumby Apr 9, 2023
6163c7d
Add the .pre-commit-config.yaml
tcumby Apr 9, 2023
3d9ed67
Add ruff pre-commit hook
tcumby Apr 9, 2023
12d9eff
Add cmake folder
tcumby Apr 9, 2023
a11183d
Add pyproject.toml
tcumby Apr 9, 2023
0677aa8
Add a fetch for libtmpl
tcumby Apr 9, 2023
09c22f1
Add in old CMake build system
tcumby Apr 9, 2023
c54eb50
Add link to libtmpl
tcumby Apr 9, 2023
ae31986
Swtich build over to scikit-build
tcumby Apr 9, 2023
a8ba9f9
Switch to conan
tcumby Apr 15, 2023
880fc33
Correct execute_process command for conan_install
tcumby Apr 15, 2023
1c68528
Disable build of utlities for cspice, which is broken on MSVC due to …
tcumby Apr 16, 2023
2d59c3b
Remove an old directory add
tcumby Apr 22, 2023
342ded9
Update pre-commit config
tcumby Apr 22, 2023
27c1f2f
Add a presets file
tcumby Apr 22, 2023
190982d
Fix libtmpl fetch source dir and set to C11
tcumby Apr 22, 2023
c53bd21
Set up rudimentary Conan integration
tcumby Apr 22, 2023
3a51245
Correct target name for libtmpl
tcumby Apr 22, 2023
f4bc682
Add the CMakeUserPresets.json to .gitignore
tcumby Apr 23, 2023
3981790
Add conan to the dev-requriements.txt
tcumby Apr 23, 2023
56e681f
Add RSS_RINGOCCS_EXPORT
tcumby Apr 23, 2023
7c3f5af
Add libtmpl to install
tcumby Apr 29, 2023
de6afbc
Append to CMAKE_PREFIX_PATH
tcumby Apr 29, 2023
5cf934c
Add CSPICE
tcumby Apr 29, 2023
6372bb4
Update pre-commit config
tcumby Apr 29, 2023
0dd84a6
Set the line length in the gersemi config to 120
tcumby Apr 30, 2023
9b05f20
Re-formatting
tcumby Apr 30, 2023
1b45b46
Add a Github CI config
tcumby Apr 30, 2023
870410a
Don't install libtmpl's headers
tcumby Apr 30, 2023
9142a95
Add v1.3dev-add-cmake-system-redo to list of branches to spawn the CI
tcumby Apr 30, 2023
d4cb922
Apparently we need to fully specify python versions?
tcumby Apr 30, 2023
908acbb
Correct the `files` specification for the 'pretty-format-yaml` pre-co…
tcumby Apr 30, 2023
7bb2b73
Preserver qutoes for the 'pretty-format-yaml` pre-commit hook
tcumby Apr 30, 2023
e633726
Reformatting
tcumby Apr 30, 2023
d5bd770
Fix the python versions to lower point-point releases so that there a…
tcumby Apr 30, 2023
af41410
Create the defauilt conan profile
tcumby Apr 30, 2023
3ba551b
Drop the Ubuntu version to 20.04
tcumby Apr 30, 2023
1de8411
Hopefully fix the libtmpl header inclusion
tcumby May 1, 2023
d2abcbf
Add setup of FASM
tcumby May 6, 2023
f095cfd
Create a variable for the parent dir of the libtmpl source
tcumby May 7, 2023
4d5c18c
Typos ...
tcumby May 7, 2023
79897cc
Add a missing include directory
tcumby May 7, 2023
3a6bf7f
Retrieve FASM for Ubuntu builds
tcumby May 7, 2023
3bac05d
Add more libtmpl include dirs
tcumby May 7, 2023
2505d34
Add more libtmpl include dirs
tcumby May 7, 2023
d0b31b6
Restrict cmake pipeline to python versions that can install all packages
tcumby May 7, 2023
bf0f55f
Switch to cmake-format
tcumby May 29, 2023
602b3c7
Update pre-commit hooks
tcumby May 29, 2023
6e37125
Reformat CMake files
tcumby May 29, 2023
1830448
Suppress the extra libtmpl install rules during python packaging
tcumby Jun 4, 2023
2720e63
Only install shared libraries in the *.whl
tcumby Jun 4, 2023
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
253 changes: 253 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
_help_parse: Options affecting listfile parsing
parse:
_help_additional_commands:
- Specify structure for custom cmake functions
additional_commands:
foo:
flags:
- BAR
- BAZ
kwargs:
HEADERS: '*'
SOURCES: '*'
DEPENDS: '*'
conan_cmake_install:
kwargs:
PATH_OR_REFERENCE: '*'
BUILD: '*'
REMOTE: '*'
SETTINGS: '*'
PROFILE: '*'

_help_override_spec:
- Override configurations per-command where available
override_spec: {}
_help_vartags:
- Specify variable tags.
vartags: []
_help_proptags:
- Specify property tags.
proptags: []
_help_format: Options affecting formatting.
format:
_help_disable:
- Disable formatting entirely, making cmake-format a no-op
disable: false
_help_line_width:
- How wide to allow formatted cmake files
line_width: 120
_help_tab_size:
- How many spaces to tab for indent
tab_size: 4
_help_use_tabchars:
- If true, lines are indented using tab characters (utf-8
- 0x09) instead of <tab_size> space characters (utf-8 0x20).
- In cases where the layout would require a fractional tab
- character, the behavior of the fractional indentation is
- governed by <fractional_tab_policy>
use_tabchars: false
_help_fractional_tab_policy:
- If <use_tabchars> is True, then the value of this variable
- indicates how fractional indentions are handled during
- whitespace replacement. If set to 'use-space', fractional
- indentation is left as spaces (utf-8 0x20). If set to
- '`round-up` fractional indentation is replaced with a single'
- tab character (utf-8 0x09) effectively shifting the column
- to the next tabstop
fractional_tab_policy: use-space
_help_max_subgroups_hwrap:
- If an argument group contains more than this many sub-groups
- (parg or kwarg groups) then force it to a vertical layout.
max_subgroups_hwrap: 2
_help_max_pargs_hwrap:
- If a positional argument group contains more than this many
- arguments, then force it to a vertical layout.
max_pargs_hwrap: 6
_help_max_rows_cmdline:
- If a cmdline positional group consumes more than this many
- lines without nesting, then invalidate the layout (and nest)
max_rows_cmdline: 2
_help_separate_ctrl_name_with_space:
- If true, separate flow control names from their parentheses
- with a space
separate_ctrl_name_with_space: false
_help_separate_fn_name_with_space:
- If true, separate function names from parentheses with a
- space
separate_fn_name_with_space: false
_help_dangle_parens:
- If a statement is wrapped to more than one line, than dangle
- the closing parenthesis on its own line.
dangle_parens: true
_help_dangle_align:
- If the trailing parenthesis must be 'dangled' on its on
- 'line, then align it to this reference: `prefix`: the start'
- 'of the statement, `prefix-indent`: the start of the'
- 'statement, plus one indentation level, `child`: align to'
- the column of the arguments
dangle_align: prefix
_help_min_prefix_chars:
- If the statement spelling length (including space and
- parenthesis) is smaller than this amount, then force reject
- nested layouts.
min_prefix_chars: 4
_help_max_prefix_chars:
- If the statement spelling length (including space and
- parenthesis) is larger than the tab width by more than this
- amount, then force reject un-nested layouts.
max_prefix_chars: 10
_help_max_lines_hwrap:
- If a candidate layout is wrapped horizontally but it exceeds
- this many lines, then reject the layout.
max_lines_hwrap: 2
_help_line_ending:
- What style line endings to use in the output.
line_ending: auto
_help_command_case:
- Format command names consistently as 'lower' or 'upper' case
command_case: canonical
_help_keyword_case:
- Format keywords consistently as 'lower' or 'upper' case
keyword_case: unchanged
_help_always_wrap:
- A list of command names which should always be wrapped
always_wrap: []
_help_enable_sort:
- If true, the argument lists which are known to be sortable
- will be sorted lexicographicall
enable_sort: false
_help_autosort:
- If true, the parsers may infer whether or not an argument
- list is sortable (without annotation).
autosort: false
_help_require_valid_layout:
- By default, if cmake-format cannot successfully fit
- everything into the desired linewidth it will apply the
- last, most agressive attempt that it made. If this flag is
- True, however, cmake-format will print error, exit with non-
- zero status code, and write-out nothing
require_valid_layout: false
_help_layout_passes:
- A dictionary mapping layout nodes to a list of wrap
- decisions. See the documentation for more information.
layout_passes: {}
_help_markup: Options affecting comment reflow and formatting.
markup:
_help_bullet_char:
- What character to use for bulleted lists
bullet_char: '*'
_help_enum_char:
- What character to use as punctuation after numerals in an
- enumerated list
enum_char: .
_help_first_comment_is_literal:
- If comment markup is enabled, don't reflow the first comment
- block in each listfile. Use this to preserve formatting of
- your copyright/license statements.
first_comment_is_literal: false
_help_literal_comment_pattern:
- If comment markup is enabled, don't reflow any comment block
- which matches this (regex) pattern. Default is `None`
- (disabled).
literal_comment_pattern: null
_help_fence_pattern:
- Regular expression to match preformat fences in comments
- default= ``r'^\s*([`~]{3}[`~]*)(.*)$'``
fence_pattern: ^\s*([`~]{3}[`~]*)(.*)$
_help_ruler_pattern:
- Regular expression to match rulers in comments default=
- '``r''^\s*[^\w\s]{3}.*[^\w\s]{3}$''``'
ruler_pattern: ^\s*[^\w\s]{3}.*[^\w\s]{3}$
_help_explicit_trailing_pattern:
- If a comment line matches starts with this pattern then it
- is explicitly a trailing comment for the preceeding
- argument. Default is '#<'
explicit_trailing_pattern: '#<'
_help_hashruler_min_length:
- If a comment line starts with at least this many consecutive
- hash characters, then don't lstrip() them off. This allows
- for lazy hash rulers where the first hash char is not
- separated by space
hashruler_min_length: 10
_help_canonicalize_hashrulers:
- If true, then insert a space between the first hash char and
- remaining hash chars in a hash ruler, and normalize its
- length to fill the column
canonicalize_hashrulers: true
_help_enable_markup:
- enable comment markup parsing and reflow
enable_markup: true
_help_lint: Options affecting the linter
lint:
_help_disabled_codes:
- a list of lint codes to disable
disabled_codes: []
_help_function_pattern:
- regular expression pattern describing valid function names
function_pattern: '[0-9a-z_]+'
_help_macro_pattern:
- regular expression pattern describing valid macro names
macro_pattern: '[0-9A-Z_]+'
_help_global_var_pattern:
- regular expression pattern describing valid names for
- variables with global (cache) scope
global_var_pattern: '[A-Z][0-9A-Z_]+'
_help_internal_var_pattern:
- regular expression pattern describing valid names for
- variables with global scope (but internal semantic)
internal_var_pattern: _[A-Z][0-9A-Z_]+
_help_local_var_pattern:
- regular expression pattern describing valid names for
- variables with local scope
local_var_pattern: '[a-z][a-z0-9_]+'
_help_private_var_pattern:
- regular expression pattern describing valid names for
- privatedirectory variables
private_var_pattern: _[0-9a-z_]+
_help_public_var_pattern:
- regular expression pattern describing valid names for public
- directory variables
public_var_pattern: '[A-Z][0-9A-Z_]+'
_help_argument_var_pattern:
- regular expression pattern describing valid names for
- function/macro arguments and loop variables.
argument_var_pattern: '[a-z][a-z0-9_]+'
_help_keyword_pattern:
- regular expression pattern describing valid names for
- keywords used in functions or macros
keyword_pattern: '[A-Z][0-9A-Z_]+'
_help_max_conditionals_custom_parser:
- In the heuristic for C0201, how many conditionals to match
- within a loop in before considering the loop a parser.
max_conditionals_custom_parser: 2
_help_min_statement_spacing:
- Require at least this many newlines between statements
min_statement_spacing: 1
_help_max_statement_spacing:
- Require no more than this many newlines between statements
max_statement_spacing: 2
max_returns: 6
max_branches: 12
max_arguments: 5
max_localvars: 15
max_statements: 50
_help_encode: Options affecting file encoding
encode:
_help_emit_byteorder_mark:
- If true, emit the unicode byte-order mark (BOM) at the start
- of the file
emit_byteorder_mark: false
_help_input_encoding:
- Specify the encoding of the input file. Defaults to utf-8
input_encoding: utf-8
_help_output_encoding:
- Specify the encoding of the output file. Defaults to utf-8.
- Note that cmake only claims to support utf-8 so be careful
- when using anything else
output_encoding: utf-8
_help_misc: Miscellaneous configurations options.
misc:
_help_per_command:
- A dictionary containing any per-command configuration
- overrides. Currently only `command_case` is supported.
per_command: {}
69 changes: 69 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CMake

on:
push:
branches: [master, v1.3dev-add-cmake-system-redo]
pull_request:
branches: [master, v1.3dev-add-cmake-system-redo]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-20.04, windows-latest]
python-version: ['3.7.9', '3.8.10', '3.9.13', "3.10.11"]
# vtk (a dependency of mayavi) does not currently support python 3.10
steps:
- uses: actions/checkout@v3

- uses: stevenwdv/setup-fasm@v1
if: ${{ contains(matrix.os, 'ubuntu') }}

- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.0.4

- name: Create default Conan profile
run: conan profile detect --force

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt

- name: Check version
run: cmake --version

- name: "CMake: configure"
# We use bash so that the same syntax for environment variables can be across all operating systems
shell: bash
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPython_ROOT_DIR=${{env.pythonLocation}}

- name: "CMake: build"
# Build your program with the given configuration
run: cmake --build build --config ${{env.BUILD_TYPE}}

- name: "CMake: test"
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
56 changes: 56 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [master, v1.3dev-add-cmake-system-redo]
pull_request:
branches: [master, v1.3dev-add-cmake-system-redo]

jobs:
build:

runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ['3.6.8', '3.7.9', '3.8.10', '3.9.13']
# vtk (a dependency of mayavi) does not currently support python 3.10
steps:
- uses: actions/checkout@v3

- uses: stevenwdv/setup-fasm@v1

- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.0.4

- name: Create default Conan profile
run: conan profile detect --force

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Build and install rss_ringoccs package
run: python -m pip install --verbose .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --config=tox.ini --statistics
- name: Test with pytest
working-directory: ..
run: |
pytest --capture=tee-sys --showlocals --cov-report term-missing --cov=rss_ringoccs rss_ringoccs/tests/
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store*
*.pyc
*.icloud
*.rst
*.bat
*.so
kernels/
output/
data/
.vscode/
__pycache__
*~
*.ppm
*.o
.idea/
CMakeUserPresets.json
Loading