cylindra 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cylindra-1.0.0/.github/workflows/CI.yml +138 -0
- cylindra-1.0.0/.github/workflows/docs.yml +43 -0
- cylindra-1.0.0/.github/workflows/test.yml +59 -0
- cylindra-1.0.0/.gitignore +145 -0
- cylindra-1.0.0/.pre-commit-config.yaml +18 -0
- cylindra-1.0.0/Cargo.lock +393 -0
- cylindra-1.0.0/Cargo.toml +17 -0
- cylindra-1.0.0/LICENSE +29 -0
- cylindra-1.0.0/PKG-INFO +175 -0
- cylindra-1.0.0/README.md +101 -0
- cylindra-1.0.0/cylindra/__init__.py +44 -0
- cylindra-1.0.0/cylindra/__main__.py +22 -0
- cylindra-1.0.0/cylindra/_config.py +334 -0
- cylindra-1.0.0/cylindra/_cylindra_ext.pyi +200 -0
- cylindra-1.0.0/cylindra/_dask.py +19 -0
- cylindra-1.0.0/cylindra/_data/BtubAB.json +12 -0
- cylindra-1.0.0/cylindra/_data/TMV.json +12 -0
- cylindra-1.0.0/cylindra/_data/actin.json +12 -0
- cylindra-1.0.0/cylindra/_data/eukaryotic_MT.json +12 -0
- cylindra-1.0.0/cylindra/_napari/__init__.py +13 -0
- cylindra-1.0.0/cylindra/_napari/_layer_controls.py +134 -0
- cylindra-1.0.0/cylindra/_napari/_layers.py +560 -0
- cylindra-1.0.0/cylindra/_napari/_sub_controls.py +316 -0
- cylindra-1.0.0/cylindra/_previews.py +178 -0
- cylindra-1.0.0/cylindra/_shared_doc.py +105 -0
- cylindra-1.0.0/cylindra/cli/__init__.py +48 -0
- cylindra-1.0.0/cylindra/cli/_base.py +102 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/cookiecutter.json +16 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/hooks/post_gen_project.py +16 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/.gitignore +141 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/LICENSE +9 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/README.md +11 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/licenses/Apache-2.txt +202 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/licenses/BSD-3.txt +28 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/licenses/GPL-3.txt +675 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/licenses/MIT.txt +22 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/pyproject.toml +109 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/tests/__init__.py +0 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/{{cookiecutter.module_name}}/__init__.py +4 -0
- cylindra-1.0.0/cylindra/cli/_cookiecutter_template/{{cookiecutter.plugin_name}}/{{cookiecutter.module_name}}/core.py +7 -0
- cylindra-1.0.0/cylindra/cli/average.py +107 -0
- cylindra-1.0.0/cylindra/cli/config.py +159 -0
- cylindra-1.0.0/cylindra/cli/find.py +169 -0
- cylindra-1.0.0/cylindra/cli/new.py +97 -0
- cylindra-1.0.0/cylindra/cli/none.py +45 -0
- cylindra-1.0.0/cylindra/cli/open.py +82 -0
- cylindra-1.0.0/cylindra/cli/plugin.py +72 -0
- cylindra-1.0.0/cylindra/cli/preview.py +176 -0
- cylindra-1.0.0/cylindra/cli/run.py +58 -0
- cylindra-1.0.0/cylindra/cli/workflow.py +87 -0
- cylindra-1.0.0/cylindra/components/__init__.py +22 -0
- cylindra-1.0.0/cylindra/components/_base.py +69 -0
- cylindra-1.0.0/cylindra/components/_cylinder_params.py +240 -0
- cylindra-1.0.0/cylindra/components/_ftprops.py +270 -0
- cylindra-1.0.0/cylindra/components/_peak.py +265 -0
- cylindra-1.0.0/cylindra/components/cylindric.py +467 -0
- cylindra-1.0.0/cylindra/components/imscale.py +107 -0
- cylindra-1.0.0/cylindra/components/interaction.py +279 -0
- cylindra-1.0.0/cylindra/components/landscape.py +964 -0
- cylindra-1.0.0/cylindra/components/picker.py +186 -0
- cylindra-1.0.0/cylindra/components/seam_search.py +177 -0
- cylindra-1.0.0/cylindra/components/spline/__init__.py +5 -0
- cylindra-1.0.0/cylindra/components/spline/_config.py +195 -0
- cylindra-1.0.0/cylindra/components/spline/_cyl_spline.py +280 -0
- cylindra-1.0.0/cylindra/components/spline/_props.py +279 -0
- cylindra-1.0.0/cylindra/components/spline/_spline_base.py +1151 -0
- cylindra-1.0.0/cylindra/components/spline/_types.py +38 -0
- cylindra-1.0.0/cylindra/components/tomogram/__init__.py +4 -0
- cylindra-1.0.0/cylindra/components/tomogram/_cyl_tomo.py +1278 -0
- cylindra-1.0.0/cylindra/components/tomogram/_misc.py +366 -0
- cylindra-1.0.0/cylindra/components/tomogram/_spline_list.py +179 -0
- cylindra-1.0.0/cylindra/components/tomogram/_straighten.py +87 -0
- cylindra-1.0.0/cylindra/components/tomogram/_tomo_base.py +419 -0
- cylindra-1.0.0/cylindra/components/visualize.py +122 -0
- cylindra-1.0.0/cylindra/const.py +257 -0
- cylindra-1.0.0/cylindra/core.py +288 -0
- cylindra-1.0.0/cylindra/cylfilters.py +239 -0
- cylindra-1.0.0/cylindra/cylmeasure.py +487 -0
- cylindra-1.0.0/cylindra/cyltransform.py +73 -0
- cylindra-1.0.0/cylindra/napari.yaml +10 -0
- cylindra-1.0.0/cylindra/plugin/__init__.py +4 -0
- cylindra-1.0.0/cylindra/plugin/_find.py +113 -0
- cylindra-1.0.0/cylindra/plugin/core.py +63 -0
- cylindra-1.0.0/cylindra/plugin/function.py +140 -0
- cylindra-1.0.0/cylindra/project/__init__.py +13 -0
- cylindra-1.0.0/cylindra/project/_base.py +195 -0
- cylindra-1.0.0/cylindra/project/_batch.py +207 -0
- cylindra-1.0.0/cylindra/project/_json.py +28 -0
- cylindra-1.0.0/cylindra/project/_layer_info.py +216 -0
- cylindra-1.0.0/cylindra/project/_sequence.py +673 -0
- cylindra-1.0.0/cylindra/project/_single.py +763 -0
- cylindra-1.0.0/cylindra/project/_utils.py +88 -0
- cylindra-1.0.0/cylindra/project/_widgets.py +207 -0
- cylindra-1.0.0/cylindra/types.py +70 -0
- cylindra-1.0.0/cylindra/utils/__init__.py +3 -0
- cylindra-1.0.0/cylindra/utils/_color.py +13 -0
- cylindra-1.0.0/cylindra/utils/_correlation.py +89 -0
- cylindra-1.0.0/cylindra/utils/_misc.py +438 -0
- cylindra-1.0.0/cylindra/utils/_test_utils.py +31 -0
- cylindra-1.0.0/cylindra/widget_utils.py +551 -0
- cylindra-1.0.0/cylindra/widgets/__init__.py +40 -0
- cylindra-1.0.0/cylindra/widgets/_accessors.py +307 -0
- cylindra-1.0.0/cylindra/widgets/_annealing.py +240 -0
- cylindra-1.0.0/cylindra/widgets/_annotated.py +122 -0
- cylindra-1.0.0/cylindra/widgets/_callbacks.py +28 -0
- cylindra-1.0.0/cylindra/widgets/_main_utils.py +213 -0
- cylindra-1.0.0/cylindra/widgets/_process_template.py +309 -0
- cylindra-1.0.0/cylindra/widgets/_progress_desc.py +110 -0
- cylindra-1.0.0/cylindra/widgets/_reserved_layers.py +187 -0
- cylindra-1.0.0/cylindra/widgets/_ui_init.py +584 -0
- cylindra-1.0.0/cylindra/widgets/_widget_ext.py +872 -0
- cylindra-1.0.0/cylindra/widgets/batch/__init__.py +5 -0
- cylindra-1.0.0/cylindra/widgets/batch/_loaderlist.py +72 -0
- cylindra-1.0.0/cylindra/widgets/batch/_sequence.py +548 -0
- cylindra-1.0.0/cylindra/widgets/batch/_utils.py +160 -0
- cylindra-1.0.0/cylindra/widgets/batch/main.py +370 -0
- cylindra-1.0.0/cylindra/widgets/batch/menus.py +37 -0
- cylindra-1.0.0/cylindra/widgets/batch/sta.py +689 -0
- cylindra-1.0.0/cylindra/widgets/icons/grip.svg +6 -0
- cylindra-1.0.0/cylindra/widgets/main.py +3617 -0
- cylindra-1.0.0/cylindra/widgets/sta.py +2518 -0
- cylindra-1.0.0/cylindra/widgets/style.qss +23 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/__init__.py +54 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/_child_widget.py +9 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/config_edit.py +177 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/file_iter.py +197 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/function_menu.py +519 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/image_processor.py +209 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/manual_picker.py +429 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/measure.py +571 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/menus.py +1195 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/misc.py +278 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/properties.py +268 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/runner.py +178 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/simulator.py +1155 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/slicer.py +709 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/spline_clipper.py +163 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/spline_control.py +377 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/spline_fitter.py +352 -0
- cylindra-1.0.0/cylindra/widgets/subwidgets/toolbar.py +110 -0
- cylindra-1.0.0/cylindra_builtins/_pytest_fixtures.py +63 -0
- cylindra-1.0.0/cylindra_builtins/imod/__init__.py +35 -0
- cylindra-1.0.0/cylindra_builtins/imod/cmd.py +96 -0
- cylindra-1.0.0/cylindra_builtins/imod/io.py +591 -0
- cylindra-1.0.0/cylindra_builtins/imod/tests/__init__.py +0 -0
- cylindra-1.0.0/cylindra_builtins/imod/tests/imod_test_projects/position_1/position_1.edf +2 -0
- cylindra-1.0.0/cylindra_builtins/imod/tests/imod_test_projects/position_1/position_1.rawtlt +5 -0
- cylindra-1.0.0/cylindra_builtins/imod/tests/imod_test_projects/position_2/position_2.edf +2 -0
- cylindra-1.0.0/cylindra_builtins/imod/tests/test_imod_io.py +57 -0
- cylindra-1.0.0/cylindra_builtins/relion/__init__.py +33 -0
- cylindra-1.0.0/cylindra_builtins/relion/io.py +619 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/__init__.py +0 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Picks/job_picks/job.star +27 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Picks/job_picks/optimisation_set.star +6 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Picks/job_picks/particles.star +12 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Refine3D/job_refine/job.star +77 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Refine3D/job_refine/run_it040_optimisation_set.star +8 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Refine3D/job_refine/run_it050_data.star +53 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Refine3D/job_refine/run_it050_optimisation_set.star +8 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Tomograms/job_tomo/job.star +37 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_jobs/Tomograms/job_tomo/tomograms.star +25 -0
- cylindra-1.0.0/cylindra_builtins/relion/tests/test_relion_io.py +88 -0
- cylindra-1.0.0/docs/alignment/conventional.md +153 -0
- cylindra-1.0.0/docs/alignment/index.md +27 -0
- cylindra-1.0.0/docs/alignment/landscape.md +38 -0
- cylindra-1.0.0/docs/alignment/rma.md +49 -0
- cylindra-1.0.0/docs/alignment/viterbi.md +32 -0
- cylindra-1.0.0/docs/api/builtins/imod.md +8 -0
- cylindra-1.0.0/docs/api/builtins/relion.md +8 -0
- cylindra-1.0.0/docs/api/components.md +28 -0
- cylindra-1.0.0/docs/api/core.md +6 -0
- cylindra-1.0.0/docs/api/cylfilters.md +6 -0
- cylindra-1.0.0/docs/api/cylmeasure.md +6 -0
- cylindra-1.0.0/docs/api/index.md +3 -0
- cylindra-1.0.0/docs/api/plugin.md +8 -0
- cylindra-1.0.0/docs/api/project.md +6 -0
- cylindra-1.0.0/docs/api/widgets/batch.md +19 -0
- cylindra-1.0.0/docs/api/widgets/main.md +6 -0
- cylindra-1.0.0/docs/api/widgets/sta.md +8 -0
- cylindra-1.0.0/docs/api/widgets/subwidgets.md +19 -0
- cylindra-1.0.0/docs/basics.md +126 -0
- cylindra-1.0.0/docs/batch/average.md +6 -0
- cylindra-1.0.0/docs/batch/collect_projects.md +78 -0
- cylindra-1.0.0/docs/batch/construct.md +90 -0
- cylindra-1.0.0/docs/batch/index.md +7 -0
- cylindra-1.0.0/docs/case_studies/custom_config.md +114 -0
- cylindra-1.0.0/docs/case_studies/index.md +16 -0
- cylindra-1.0.0/docs/case_studies/learning_cft.md +108 -0
- cylindra-1.0.0/docs/case_studies/make_figure.md +50 -0
- cylindra-1.0.0/docs/case_studies/rma.md +68 -0
- cylindra-1.0.0/docs/case_studies/seam_search.md +71 -0
- cylindra-1.0.0/docs/case_studies/ssta.md +81 -0
- cylindra-1.0.0/docs/cli.md +29 -0
- cylindra-1.0.0/docs/extern/imod.md +88 -0
- cylindra-1.0.0/docs/extern/index.md +10 -0
- cylindra-1.0.0/docs/extern/relion.md +74 -0
- cylindra-1.0.0/docs/fit_splines.md +162 -0
- cylindra-1.0.0/docs/images/average_tubulin.png +0 -0
- cylindra-1.0.0/docs/images/case-study-config-00-fit.png +0 -0
- cylindra-1.0.0/docs/images/case-study-config-01-slicer.png +0 -0
- cylindra-1.0.0/docs/images/case-study-config-02-measure-params.png +0 -0
- cylindra-1.0.0/docs/images/case-study-rma-00-init-molecules.png +0 -0
- cylindra-1.0.0/docs/images/case-study-rma-01-align-averaged.png +0 -0
- cylindra-1.0.0/docs/images/case-study-rma-02-rma-preview.png +0 -0
- cylindra-1.0.0/docs/images/case-study-rma-03-rma-result.png +0 -0
- cylindra-1.0.0/docs/images/case-study-rma-04-paint.png +0 -0
- cylindra-1.0.0/docs/images/draw_splines.gif +0 -0
- cylindra-1.0.0/docs/images/generate_molecules.gif +0 -0
- cylindra-1.0.0/docs/images/helical-symmetry-avg.png +0 -0
- cylindra-1.0.0/docs/images/lattice_params.png +0 -0
- cylindra-1.0.0/docs/images/make_figure.png +0 -0
- cylindra-1.0.0/docs/index.md +71 -0
- cylindra-1.0.0/docs/inspect_results.md +26 -0
- cylindra-1.0.0/docs/installation.md +72 -0
- cylindra-1.0.0/docs/lattice_params.md +309 -0
- cylindra-1.0.0/docs/molecules/expressions.md +72 -0
- cylindra-1.0.0/docs/molecules/features.md +88 -0
- cylindra-1.0.0/docs/molecules/filter_molecules.md +49 -0
- cylindra-1.0.0/docs/molecules/headers.md +78 -0
- cylindra-1.0.0/docs/molecules/index.md +14 -0
- cylindra-1.0.0/docs/molecules/pick_molecules.md +49 -0
- cylindra-1.0.0/docs/molecules/spline_to_molecules.md +234 -0
- cylindra-1.0.0/docs/molecules/split_and_combine.md +46 -0
- cylindra-1.0.0/docs/molecules/transform.md +38 -0
- cylindra-1.0.0/docs/open_image.md +225 -0
- cylindra-1.0.0/docs/plugins.md +130 -0
- cylindra-1.0.0/docs/process_images.md +13 -0
- cylindra-1.0.0/docs/project_io.md +82 -0
- cylindra-1.0.0/docs/scripts/_dynamic_doc.py +54 -0
- cylindra-1.0.0/docs/scripts/_screenshots.py +284 -0
- cylindra-1.0.0/docs/simulate.md +193 -0
- cylindra-1.0.0/docs/spline/clip.md +47 -0
- cylindra-1.0.0/docs/spline/config.md +89 -0
- cylindra-1.0.0/docs/spline/index.md +12 -0
- cylindra-1.0.0/docs/workflows.md +100 -0
- cylindra-1.0.0/mkdocs.yml +144 -0
- cylindra-1.0.0/pyproject.toml +193 -0
- cylindra-1.0.0/resources/fig.png +0 -0
- cylindra-1.0.0/src/alleviate.rs +115 -0
- cylindra-1.0.0/src/annealing/graphs/basic.rs +453 -0
- cylindra-1.0.0/src/annealing/graphs/defective.rs +532 -0
- cylindra-1.0.0/src/annealing/graphs/filamentous.rs +444 -0
- cylindra-1.0.0/src/annealing/graphs/mod.rs +9 -0
- cylindra-1.0.0/src/annealing/graphs/traits.rs +223 -0
- cylindra-1.0.0/src/annealing/mod.rs +9 -0
- cylindra-1.0.0/src/annealing/models/basic.rs +334 -0
- cylindra-1.0.0/src/annealing/models/defective.rs +371 -0
- cylindra-1.0.0/src/annealing/models/filamentous.rs +317 -0
- cylindra-1.0.0/src/annealing/models/misc.rs +7 -0
- cylindra-1.0.0/src/annealing/models/mod.rs +4 -0
- cylindra-1.0.0/src/annealing/potential.rs +277 -0
- cylindra-1.0.0/src/annealing/random.rs +134 -0
- cylindra-1.0.0/src/annealing/reservoir.rs +57 -0
- cylindra-1.0.0/src/array.rs +105 -0
- cylindra-1.0.0/src/coordinates/coordinate_system.rs +64 -0
- cylindra-1.0.0/src/coordinates/mod.rs +5 -0
- cylindra-1.0.0/src/coordinates/vector.rs +263 -0
- cylindra-1.0.0/src/cylindric.rs +267 -0
- cylindra-1.0.0/src/exceptions.rs +19 -0
- cylindra-1.0.0/src/filters.rs +475 -0
- cylindra-1.0.0/src/hash/hash_1d.rs +64 -0
- cylindra-1.0.0/src/hash/hash_2d.rs +65 -0
- cylindra-1.0.0/src/hash/mod.rs +5 -0
- cylindra-1.0.0/src/lib.rs +34 -0
- cylindra-1.0.0/src/regionprops.rs +348 -0
- cylindra-1.0.0/src/viterbi/constraint.rs +198 -0
- cylindra-1.0.0/src/viterbi/core.rs +472 -0
- cylindra-1.0.0/src/viterbi/mod.rs +4 -0
- cylindra-1.0.0/tests/13pf_MT.tif +0 -0
- cylindra-1.0.0/tests/14pf_MT.tif +0 -0
- cylindra-1.0.0/tests/__init__.py +7 -0
- cylindra-1.0.0/tests/_const.py +5 -0
- cylindra-1.0.0/tests/beta-tubulin.mrc +0 -0
- cylindra-1.0.0/tests/conftest.py +12 -0
- cylindra-1.0.0/tests/dummy.mrc.mdoc +19 -0
- cylindra-1.0.0/tests/test_algorithms.py +349 -0
- cylindra-1.0.0/tests/test_custom_widgets.py +108 -0
- cylindra-1.0.0/tests/test_cylfilters.py +66 -0
- cylindra-1.0.0/tests/test_cylindric_model.py +110 -0
- cylindra-1.0.0/tests/test_gui_0.py +1892 -0
- cylindra-1.0.0/tests/test_gui_1_batch.py +188 -0
- cylindra-1.0.0/tests/test_gui_2_cli.py +129 -0
- cylindra-1.0.0/tests/test_io.py +17 -0
- cylindra-1.0.0/tests/test_projects.py +53 -0
- cylindra-1.0.0/tests/test_regionprops.py +102 -0
- cylindra-1.0.0/tests/test_splines.py +307 -0
- cylindra-1.0.0/tests/test_utils.py +237 -0
- cylindra-1.0.0/tests/test_viterbi.py +125 -0
- cylindra-1.0.0/tests/utils.py +75 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.5.1
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: CI
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
platform:
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
target: x86_64
|
|
29
|
+
- runner: ubuntu-latest
|
|
30
|
+
target: x86
|
|
31
|
+
- runner: ubuntu-latest
|
|
32
|
+
target: aarch64
|
|
33
|
+
- runner: ubuntu-latest
|
|
34
|
+
target: armv7
|
|
35
|
+
- runner: ubuntu-latest
|
|
36
|
+
target: s390x
|
|
37
|
+
- runner: ubuntu-latest
|
|
38
|
+
target: ppc64le
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: '3.11'
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist --find-interpreter
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
- name: Upload wheels
|
|
52
|
+
uses: actions/upload-artifact@v4
|
|
53
|
+
with:
|
|
54
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
55
|
+
path: dist
|
|
56
|
+
|
|
57
|
+
windows:
|
|
58
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
59
|
+
strategy:
|
|
60
|
+
matrix:
|
|
61
|
+
platform:
|
|
62
|
+
- runner: windows-latest
|
|
63
|
+
target: x64
|
|
64
|
+
- runner: windows-latest
|
|
65
|
+
target: x86
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v4
|
|
68
|
+
- uses: actions/setup-python@v5
|
|
69
|
+
with:
|
|
70
|
+
python-version: '3.11'
|
|
71
|
+
architecture: ${{ matrix.platform.target }}
|
|
72
|
+
- name: Build wheels
|
|
73
|
+
uses: PyO3/maturin-action@v1
|
|
74
|
+
with:
|
|
75
|
+
target: ${{ matrix.platform.target }}
|
|
76
|
+
args: --release --out dist --find-interpreter
|
|
77
|
+
sccache: 'true'
|
|
78
|
+
- name: Upload wheels
|
|
79
|
+
uses: actions/upload-artifact@v4
|
|
80
|
+
with:
|
|
81
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
82
|
+
path: dist
|
|
83
|
+
|
|
84
|
+
macos:
|
|
85
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
86
|
+
strategy:
|
|
87
|
+
matrix:
|
|
88
|
+
platform:
|
|
89
|
+
- runner: macos-latest
|
|
90
|
+
target: x86_64
|
|
91
|
+
- runner: macos-14
|
|
92
|
+
target: aarch64
|
|
93
|
+
steps:
|
|
94
|
+
- uses: actions/checkout@v4
|
|
95
|
+
- uses: actions/setup-python@v5
|
|
96
|
+
with:
|
|
97
|
+
python-version: '3.11'
|
|
98
|
+
- name: Build wheels
|
|
99
|
+
uses: PyO3/maturin-action@v1
|
|
100
|
+
with:
|
|
101
|
+
target: ${{ matrix.platform.target }}
|
|
102
|
+
args: --release --out dist --find-interpreter
|
|
103
|
+
sccache: 'true'
|
|
104
|
+
- name: Upload wheels
|
|
105
|
+
uses: actions/upload-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
108
|
+
path: dist
|
|
109
|
+
|
|
110
|
+
sdist:
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
steps:
|
|
113
|
+
- uses: actions/checkout@v4
|
|
114
|
+
- name: Build sdist
|
|
115
|
+
uses: PyO3/maturin-action@v1
|
|
116
|
+
with:
|
|
117
|
+
command: sdist
|
|
118
|
+
args: --out dist
|
|
119
|
+
- name: Upload sdist
|
|
120
|
+
uses: actions/upload-artifact@v4
|
|
121
|
+
with:
|
|
122
|
+
name: wheels-sdist
|
|
123
|
+
path: dist
|
|
124
|
+
|
|
125
|
+
release:
|
|
126
|
+
name: Release
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
129
|
+
needs: [linux, windows, macos, sdist]
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/download-artifact@v4
|
|
132
|
+
- name: Publish to PyPI
|
|
133
|
+
uses: PyO3/maturin-action@v1
|
|
134
|
+
env:
|
|
135
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
136
|
+
with:
|
|
137
|
+
command: upload
|
|
138
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
docs:
|
|
13
|
+
runs-on: macos-latest # windows not working due to OpenGL error in vispy
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
|
|
22
|
+
- name: Create virtual environment
|
|
23
|
+
env:
|
|
24
|
+
BIN: ${{ matrix.os == 'windows-latest' && 'Scripts' || 'bin' }}
|
|
25
|
+
run: |
|
|
26
|
+
python -m venv .venv
|
|
27
|
+
echo "$GITHUB_WORKSPACE/.venv/$BIN" >> $GITHUB_PATH
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
python -m pip install -e .[docs]
|
|
33
|
+
|
|
34
|
+
- name: Build Rust extension
|
|
35
|
+
run: maturin develop --release
|
|
36
|
+
|
|
37
|
+
- name: Deploy docs to GitHub Pages
|
|
38
|
+
if: github.event_name == 'push'
|
|
39
|
+
run: mkdocs gh-deploy --strict --force
|
|
40
|
+
|
|
41
|
+
- name: Test that docs build without error
|
|
42
|
+
if: github.event_name == 'pull_request'
|
|
43
|
+
run: mkdocs build --strict
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
test:
|
|
16
|
+
name: ${{ matrix.platform }} (${{ matrix.python-version }})
|
|
17
|
+
runs-on: ${{ matrix.platform }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
22
|
+
platform: [ubuntu-latest, macos-latest]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Cancel Previous Runs
|
|
26
|
+
uses: styfle/cancel-workflow-action@0.11.0
|
|
27
|
+
with:
|
|
28
|
+
access_token: ${{ github.token }}
|
|
29
|
+
|
|
30
|
+
- uses: actions/checkout@v3
|
|
31
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
32
|
+
uses: actions/setup-python@v4
|
|
33
|
+
with:
|
|
34
|
+
python-version: ${{ matrix.python-version }}
|
|
35
|
+
|
|
36
|
+
- name: Create virtual environment
|
|
37
|
+
env:
|
|
38
|
+
BIN: ${{ matrix.os == 'windows-latest' && 'Scripts' || 'bin' }}
|
|
39
|
+
run: |
|
|
40
|
+
python -m venv .venv
|
|
41
|
+
echo "$GITHUB_WORKSPACE/.venv/$BIN" >> $GITHUB_PATH
|
|
42
|
+
|
|
43
|
+
- uses: tlambert03/setup-qt-libs@v1.8
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: python -m pip install .[testing]
|
|
46
|
+
|
|
47
|
+
- name: Build Rust extension
|
|
48
|
+
run: maturin develop --release
|
|
49
|
+
|
|
50
|
+
- name: Test
|
|
51
|
+
uses: aganders3/headless-gui@v2.2
|
|
52
|
+
with:
|
|
53
|
+
run: python -m pytest --cov=cylindra --cov=cylindra_builtins --cov-report=xml
|
|
54
|
+
|
|
55
|
+
- name: Upload coverage reports to Codecov
|
|
56
|
+
uses: codecov/codecov-action@v4.0.1
|
|
57
|
+
with:
|
|
58
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
59
|
+
slug: hanjinliu/cylindra
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
.vscode/
|
|
2
|
+
test_script.py
|
|
3
|
+
scripts/user_consts.py
|
|
4
|
+
**/test_jobs/**/*.mrc
|
|
5
|
+
**/test_jobs/**/cylindra
|
|
6
|
+
|
|
7
|
+
# Project files and results
|
|
8
|
+
tests/**/*.txt
|
|
9
|
+
tests/**/*.json
|
|
10
|
+
tests/**/*.csv
|
|
11
|
+
tests/**/*.pq
|
|
12
|
+
tests/**/*.tar
|
|
13
|
+
tests/**/*.zip
|
|
14
|
+
tests/**/script.py
|
|
15
|
+
|
|
16
|
+
# Byte-compiled / optimized / DLL files
|
|
17
|
+
__pycache__/
|
|
18
|
+
*.py[cod]
|
|
19
|
+
*$py.class
|
|
20
|
+
|
|
21
|
+
# C extensions
|
|
22
|
+
*.so
|
|
23
|
+
|
|
24
|
+
# Distribution / packaging
|
|
25
|
+
.Python
|
|
26
|
+
build/
|
|
27
|
+
develop-eggs/
|
|
28
|
+
dist/
|
|
29
|
+
downloads/
|
|
30
|
+
eggs/
|
|
31
|
+
.eggs/
|
|
32
|
+
lib/
|
|
33
|
+
lib64/
|
|
34
|
+
parts/
|
|
35
|
+
sdist/
|
|
36
|
+
var/
|
|
37
|
+
wheels/
|
|
38
|
+
pip-wheel-metadata/
|
|
39
|
+
share/python-wheels/
|
|
40
|
+
*.egg-info/
|
|
41
|
+
.installed.cfg
|
|
42
|
+
*.egg
|
|
43
|
+
MANIFEST
|
|
44
|
+
|
|
45
|
+
# PyInstaller
|
|
46
|
+
# Usually these files are written by a python script from a template
|
|
47
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
48
|
+
*.manifest
|
|
49
|
+
*.spec
|
|
50
|
+
|
|
51
|
+
# Installer logs
|
|
52
|
+
pip-log.txt
|
|
53
|
+
pip-delete-this-directory.txt
|
|
54
|
+
|
|
55
|
+
# Unit test / coverage reports
|
|
56
|
+
htmlcov/
|
|
57
|
+
.tox/
|
|
58
|
+
.nox/
|
|
59
|
+
.coverage
|
|
60
|
+
.coverage.*
|
|
61
|
+
.cache
|
|
62
|
+
nosetests.xml
|
|
63
|
+
coverage.xml
|
|
64
|
+
*.cover
|
|
65
|
+
*.py,cover
|
|
66
|
+
.hypothesis/
|
|
67
|
+
.pytest_cache/
|
|
68
|
+
|
|
69
|
+
# Translations
|
|
70
|
+
*.mo
|
|
71
|
+
*.pot
|
|
72
|
+
|
|
73
|
+
# Django stuff:
|
|
74
|
+
*.log
|
|
75
|
+
local_settings.py
|
|
76
|
+
db.sqlite3
|
|
77
|
+
db.sqlite3-journal
|
|
78
|
+
|
|
79
|
+
# Flask stuff:
|
|
80
|
+
instance/
|
|
81
|
+
.webassets-cache
|
|
82
|
+
|
|
83
|
+
# Scrapy stuff:
|
|
84
|
+
.scrapy
|
|
85
|
+
|
|
86
|
+
# Sphinx documentation
|
|
87
|
+
docs/_build/
|
|
88
|
+
|
|
89
|
+
# Jupyter Notebook
|
|
90
|
+
.ipynb_checkpoints
|
|
91
|
+
|
|
92
|
+
# IPython
|
|
93
|
+
profile_default/
|
|
94
|
+
ipython_config.py
|
|
95
|
+
|
|
96
|
+
# pyenv
|
|
97
|
+
.python-version
|
|
98
|
+
|
|
99
|
+
# pipenv
|
|
100
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
101
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
102
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
103
|
+
# install all needed dependencies.
|
|
104
|
+
#Pipfile.lock
|
|
105
|
+
|
|
106
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
107
|
+
__pypackages__/
|
|
108
|
+
|
|
109
|
+
# Celery stuff
|
|
110
|
+
celerybeat-schedule
|
|
111
|
+
celerybeat.pid
|
|
112
|
+
|
|
113
|
+
# SageMath parsed files
|
|
114
|
+
*.sage.py
|
|
115
|
+
|
|
116
|
+
# Environments
|
|
117
|
+
.env
|
|
118
|
+
.venv
|
|
119
|
+
env/
|
|
120
|
+
venv/
|
|
121
|
+
ENV/
|
|
122
|
+
env.bak/
|
|
123
|
+
venv.bak/
|
|
124
|
+
|
|
125
|
+
# Spyder project settings
|
|
126
|
+
.spyderproject
|
|
127
|
+
.spyproject
|
|
128
|
+
|
|
129
|
+
# Rope project settings
|
|
130
|
+
.ropeproject
|
|
131
|
+
|
|
132
|
+
# mkdocs documentation
|
|
133
|
+
/site
|
|
134
|
+
|
|
135
|
+
# mypy
|
|
136
|
+
.mypy_cache/
|
|
137
|
+
.dmypy.json
|
|
138
|
+
dmypy.json
|
|
139
|
+
|
|
140
|
+
# Pyre type checker
|
|
141
|
+
.pyre/
|
|
142
|
+
|
|
143
|
+
# Rust
|
|
144
|
+
target/
|
|
145
|
+
Cargo.lock
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: end-of-file-fixer
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
8
|
+
rev: v3.20.0
|
|
9
|
+
hooks:
|
|
10
|
+
- id: pyupgrade
|
|
11
|
+
args: ["--keep-runtime-typing"]
|
|
12
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
13
|
+
rev: v0.13.1
|
|
14
|
+
hooks:
|
|
15
|
+
- id: ruff
|
|
16
|
+
args: ["--fix"]
|
|
17
|
+
- id: ruff-format
|
|
18
|
+
exclude: (examples|docs|tests)
|