synference 0.1.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.
Files changed (123) hide show
  1. synference-0.1.0/.github/workflows/docs.yml +87 -0
  2. synference-0.1.0/.github/workflows/publish_pypi.yml +59 -0
  3. synference-0.1.0/.github/workflows/python-app.yml +49 -0
  4. synference-0.1.0/.gitignore +60 -0
  5. synference-0.1.0/.pre-commit-config.yaml +33 -0
  6. synference-0.1.0/.python-version +1 -0
  7. synference-0.1.0/AUTHORS.rst +5 -0
  8. synference-0.1.0/CODE_OF_CONDUCT.md +128 -0
  9. synference-0.1.0/LICENSE.md +674 -0
  10. synference-0.1.0/PKG-INFO +910 -0
  11. synference-0.1.0/README.md +174 -0
  12. synference-0.1.0/docs/CONTRIBUTING.md +152 -0
  13. synference-0.1.0/docs/Makefile +20 -0
  14. synference-0.1.0/docs/make.bat +35 -0
  15. synference-0.1.0/docs/source/API.rst +13 -0
  16. synference-0.1.0/docs/source/FAQ/FAQ.rst +43 -0
  17. synference-0.1.0/docs/source/advanced_topics/advanced_topics.rst +11 -0
  18. synference-0.1.0/docs/source/advanced_topics/custom_loop.ipynb +152 -0
  19. synference-0.1.0/docs/source/advanced_topics/nle.ipynb +454 -0
  20. synference-0.1.0/docs/source/advanced_topics/simformer.ipynb +187 -0
  21. synference-0.1.0/docs/source/conf.py +102 -0
  22. synference-0.1.0/docs/source/example_libraries/test_model_library.hdf5 +0 -0
  23. synference-0.1.0/docs/source/example_models/bpass_db_v4/BPASS_DenseBasis_v4_final_nsf_0_params.pkl +0 -0
  24. synference-0.1.0/docs/source/example_models/bpass_db_v4/BPASS_DenseBasis_v4_final_nsf_0_params_empirical_noise_models.h5 +0 -0
  25. synference-0.1.0/docs/source/example_models/bpass_db_v4/BPASS_DenseBasis_v4_final_nsf_0_posterior.pkl +0 -0
  26. synference-0.1.0/docs/source/example_models/bpass_db_v4/BPASS_DenseBasis_v4_final_nsf_0_summary.json +1982 -0
  27. synference-0.1.0/docs/source/example_models/bpass_db_v4/grid_BPASS_Chab_DenseBasis_SFH_0.01_z_14_logN_2.7_Calzetti_v3_multinode.hdf5 +0 -0
  28. synference-0.1.0/docs/source/example_models/bpass_db_v4/sbi_test_data_BPASS_DenseBasis_v4_final.npz +0 -0
  29. synference-0.1.0/docs/source/getting_started/contributing.rst +0 -0
  30. synference-0.1.0/docs/source/getting_started/getting_started.rst +14 -0
  31. synference-0.1.0/docs/source/getting_started/installation.rst +85 -0
  32. synference-0.1.0/docs/source/getting_started/overview.rst +16 -0
  33. synference-0.1.0/docs/source/index.rst +100 -0
  34. synference-0.1.0/docs/source/library_gen/basic_library_generation.ipynb +815 -0
  35. synference-0.1.0/docs/source/library_gen/bring_your_own_library.ipynb +277 -0
  36. synference-0.1.0/docs/source/library_gen/complex_library_generation.ipynb +709 -0
  37. synference-0.1.0/docs/source/library_gen/library_generation.rst +18 -0
  38. synference-0.1.0/docs/source/library_gen/multithreading_library_generation.ipynb +47 -0
  39. synference-0.1.0/docs/source/library_gen/synthesizer_crash_course.ipynb +556 -0
  40. synference-0.1.0/docs/source/noise_modelling/creating_noise_model.rst +10 -0
  41. synference-0.1.0/docs/source/noise_modelling/noise_models.ipynb +326 -0
  42. synference-0.1.0/docs/source/notebook_examples/cookbook.rst +4 -0
  43. synference-0.1.0/docs/source/posterior_inference/catalogue_fitting.ipynb +870 -0
  44. synference-0.1.0/docs/source/posterior_inference/intro.rst +9 -0
  45. synference-0.1.0/docs/source/posterior_inference/sed_recovery.ipynb +454 -0
  46. synference-0.1.0/docs/source/posterior_inference/using_your_model.ipynb +136 -0
  47. synference-0.1.0/docs/source/sbi/SBI.ipynb +307 -0
  48. synference-0.1.0/docs/source/sbi/introduction_to_sbi.rst +7 -0
  49. synference-0.1.0/docs/source/sbi_train/basic_sbi_model.ipynb +1465 -0
  50. synference-0.1.0/docs/source/sbi_train/complex_sbi_model.ipynb +326 -0
  51. synference-0.1.0/docs/source/sbi_train/feature_array.ipynb +539 -0
  52. synference-0.1.0/docs/source/sbi_train/intro_sbi.rst +13 -0
  53. synference-0.1.0/docs/source/sbi_train/model_optimization.ipynb +200 -0
  54. synference-0.1.0/docs/source/sbi_train/model_validation.ipynb +45 -0
  55. synference-0.1.0/docs/source/sbi_train/online_training.ipynb +1458 -0
  56. synference-0.1.0/docs/source/sbi_train/validation_sampling.ipynb +273 -0
  57. synference-0.1.0/docs/source/templates/custom-class-template.rst +32 -0
  58. synference-0.1.0/docs/source/templates/custom-module-template.rst +81 -0
  59. synference-0.1.0/examples/README.rst +4 -0
  60. synference-0.1.0/examples/library_generation/scripts/batch_library_generation.py +557 -0
  61. synference-0.1.0/examples/library_generation/scripts/final_library_generation.py +567 -0
  62. synference-0.1.0/examples/library_generation/scripts/final_library_generation_multinode.py +680 -0
  63. synference-0.1.0/examples/library_generation/scripts/fixed_params.py +264 -0
  64. synference-0.1.0/examples/library_generation/scripts/generate_agn_library.py +292 -0
  65. synference-0.1.0/examples/library_generation/scripts/generate_library_basic.py +278 -0
  66. synference-0.1.0/examples/library_generation/scripts/generate_library_full.py +349 -0
  67. synference-0.1.0/examples/library_generation/scripts/generate_pop3_library.py +270 -0
  68. synference-0.1.0/examples/library_generation/scripts/generate_spectral_library.py +469 -0
  69. synference-0.1.0/examples/library_generation/scripts/grab_filters_for_node.py +156 -0
  70. synference-0.1.0/examples/library_generation/scripts/make_library.slurm +57 -0
  71. synference-0.1.0/examples/library_generation/scripts/min_example.py +213 -0
  72. synference-0.1.0/examples/online/notebooks/active_learning.ipynb +213 -0
  73. synference-0.1.0/examples/online/notebooks/online_learning.ipynb +585 -0
  74. synference-0.1.0/examples/online/scripts/online_learning.py +138 -0
  75. synference-0.1.0/examples/sbi/configs/best_params.yaml +12 -0
  76. synference-0.1.0/examples/sbi/configs/best_params_2101.yaml +12 -0
  77. synference-0.1.0/examples/sbi/configs/custom_loop.yaml +53 -0
  78. synference-0.1.0/examples/sbi/configs/custom_loop_mdn.yaml +62 -0
  79. synference-0.1.0/examples/sbi/configs/custom_loop_test.yaml +45 -0
  80. synference-0.1.0/examples/sbi/notebooks/empirical_noise_model.ipynb +1013 -0
  81. synference-0.1.0/examples/sbi/notebooks/evidence_networks_model_comparison.ipynb +1030 -0
  82. synference-0.1.0/examples/sbi/notebooks/model_comparison.ipynb +1079 -0
  83. synference-0.1.0/examples/sbi/notebooks/nle.ipynb +18 -0
  84. synference-0.1.0/examples/sbi/notebooks/optimize_sbi.ipynb +147 -0
  85. synference-0.1.0/examples/sbi/notebooks/test_missing_photometry.ipynb +281 -0
  86. synference-0.1.0/examples/sbi/notebooks/train_model_ensemble.ipynb +807 -0
  87. synference-0.1.0/examples/sbi/notebooks/train_spectral_model.ipynb +394 -0
  88. synference-0.1.0/examples/sbi/notebooks/validate_model.ipynb +312 -0
  89. synference-0.1.0/examples/sbi/scripts/basic_model.py +41 -0
  90. synference-0.1.0/examples/sbi/scripts/train_model.py +443 -0
  91. synference-0.1.0/examples/sbi/scripts/train_spectral_model.py +32 -0
  92. synference-0.1.0/examples/sbi/scripts/train_sphinx_model.py +32 -0
  93. synference-0.1.0/examples/sbi/scripts/wait_for_gpu.py +181 -0
  94. synference-0.1.0/examples/sbi/slurm/optimize_model.slurm +44 -0
  95. synference-0.1.0/examples/sbi/slurm/train_final_model.slurm +53 -0
  96. synference-0.1.0/examples/simformer/notebooks/integrated_simformer_testing.ipynb +69 -0
  97. synference-0.1.0/examples/simformer/notebooks/model_comparison.ipynb +451 -0
  98. synference-0.1.0/examples/simformer/notebooks/sbi_simformer.ipynb +736 -0
  99. synference-0.1.0/examples/simformer/notebooks/second_test.ipynb +338 -0
  100. synference-0.1.0/examples/simformer/notebooks/simformer_testing.ipynb +671 -0
  101. synference-0.1.0/examples/simformer/scripts/fit_simformer_model.py +86 -0
  102. synference-0.1.0/examples/simformer/scripts/model_comparison.py +104 -0
  103. synference-0.1.0/paper/bagpipes_comparison.ipynb +1987 -0
  104. synference-0.1.0/paper/missing_data.ipynb +656 -0
  105. synference-0.1.0/paper/model_testing.ipynb +1573 -0
  106. synference-0.1.0/paper/obs.ipynb +519 -0
  107. synference-0.1.0/paper/redshift_inference.ipynb +395 -0
  108. synference-0.1.0/pyproject.toml +206 -0
  109. synference-0.1.0/src/synference/__init__.py +113 -0
  110. synference-0.1.0/src/synference/custom_runner.py +1207 -0
  111. synference-0.1.0/src/synference/library.py +6254 -0
  112. synference-0.1.0/src/synference/noise_models.py +1275 -0
  113. synference-0.1.0/src/synference/py.typed +0 -0
  114. synference-0.1.0/src/synference/sbi_runner.py +8918 -0
  115. synference-0.1.0/src/synference/simformer.py +761 -0
  116. synference-0.1.0/src/synference/utils.py +2781 -0
  117. synference-0.1.0/tests/conftest.py +223 -0
  118. synference-0.1.0/tests/test_libraries/sbi_test_library.hdf5 +0 -0
  119. synference-0.1.0/tests/test_libraries/sps_test_library.hdf5 +0 -0
  120. synference-0.1.0/tests/test_library.py +664 -0
  121. synference-0.1.0/tests/test_sbi.py +283 -0
  122. synference-0.1.0/tests/test_simulator.py +163 -0
  123. synference-0.1.0/tests/test_uncertainty_models.py +513 -0
@@ -0,0 +1,87 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Docs
5
+
6
+
7
+ on:
8
+ # Runs on releases to enure docs are in step with PyPI deployment
9
+ push:
10
+ tags:
11
+ - "v*.*.*" # Matches version tags like v1.0.0, v2.1.3, etc.
12
+ branches:
13
+ - main # Ensure this matches your main branch name
14
+
15
+ # Allows you to run this workflow manually from the Actions tab
16
+ workflow_dispatch:
17
+
18
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
19
+ permissions:
20
+ contents: read
21
+ pages: write
22
+ id-token: write
23
+
24
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
26
+ concurrency:
27
+ group: "pages"
28
+ cancel-in-progress: false
29
+
30
+
31
+ jobs:
32
+ build:
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+ - name: Set up Python 3.10
37
+ uses: actions/setup-python@v5
38
+ with:
39
+ python-version: "3.10"
40
+ - name: Install dependencies
41
+ run: |
42
+ python -m pip install --upgrade pip
43
+ pip install wheel
44
+ sudo apt install pandoc
45
+ pip install .[test,docs]
46
+ pip install "dense_basis@git+https://github.com/kartheikiyer/dense_basis"
47
+ pip install "ltu_ili@git+https://github.com/maho3/ltu-ili.git"
48
+ pip install pytest-xdist # enable parallel pytest execution
49
+ - name: Download test data
50
+ run: |
51
+ # Download test grid data
52
+ mkdir -p data/libraries/
53
+ synthesizer-download --test-grids --dust-grid
54
+ synference-download --test
55
+ cd ../
56
+ - name: Sphinx Build
57
+ run: |
58
+ # Test sphinx build (runs all notebooks)
59
+ cd docs
60
+ make clean
61
+ make html SPHINXOPTS="-j auto"
62
+ cd ../
63
+ - name: Upload static files as artifact
64
+ id: deployment
65
+ uses: actions/upload-pages-artifact@v3
66
+ with:
67
+ name: github-pages
68
+ path: docs/build/html/
69
+
70
+
71
+ deploy:
72
+ environment:
73
+ name: github-pages
74
+ url: ${{ steps.deployment.outputs.page_url }}
75
+ runs-on: ubuntu-latest
76
+ needs: build
77
+ steps:
78
+ - name: Setup Pages
79
+ uses: actions/configure-pages@v5
80
+ - name: Download artifact
81
+ uses: actions/download-artifact@v4
82
+ with:
83
+ name: github-pages
84
+ path: docs/build/html/
85
+ - name: Deploy to GitHub Pages
86
+ id: deployment
87
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,59 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*" # Matches version tags like v1.0.0, v2.1.3, etc.
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ # Grant the job permission to request an OIDC token
12
+ permissions:
13
+ contents: read
14
+ id-token: write
15
+
16
+ steps:
17
+ - name: Check out the repository
18
+ uses: actions/checkout@v4
19
+ with:
20
+ persist-credentials: false
21
+
22
+ - name: Set up Python
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ python-version: "3.10"
26
+
27
+ - name: Install build dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ pip install build setuptools-scm
31
+ - name: Build source distribution (sdist only)
32
+ run: python -m build --sdist
33
+
34
+ - name: Store the distribution packages
35
+ uses: actions/upload-artifact@v4
36
+ with:
37
+ name: python-package-distributions
38
+ path: dist/
39
+
40
+ publish-to-pypi:
41
+ name: >-
42
+ Publish Python 🐍 distribution 📦 to PyPI
43
+ needs:
44
+ - build
45
+ runs-on: ubuntu-latest
46
+ environment:
47
+ name: pypi-deployment
48
+ url: https://pypi.org/p/synference/
49
+ permissions:
50
+ id-token: write
51
+
52
+ steps:
53
+ - name: Download all the dists
54
+ uses: actions/download-artifact@v4
55
+ with:
56
+ name: python-package-distributions
57
+ path: dist/
58
+ - name: Publish distribution 📦 to PyPI
59
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,49 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Tests
5
+
6
+ on:
7
+ push:
8
+ branches: ["main"]
9
+ pull_request:
10
+ branches: ["main"]
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ build:
17
+
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ max-parallel: 4
21
+ matrix:
22
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
23
+
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - name: Set up Python ${{ matrix.python-version }}
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ WITH_OPENMP=1 pip install .
35
+ pip install ruff pytest
36
+ pip install "ltu_ili@git+https://github.com/maho3/ltu-ili.git"
37
+
38
+ - name: Test import
39
+ run: |
40
+ python -c "import synference"
41
+
42
+ - name: Test with pytest
43
+ run: |
44
+ pytest
45
+ # - uses: chartboost/ruff-action@v1 # Lint with Ruff
46
+ # with:
47
+ # version: 0.6.4
48
+ # changed-files: 'true'
49
+
@@ -0,0 +1,60 @@
1
+ # Custom
2
+ examples/plots/*.png
3
+ docs/source/_autosummary
4
+ docs/source/auto_examples/
5
+ docs/source/gen_modules/
6
+ docs/source/sg_execution_times.rst
7
+
8
+ # Python-generated files
9
+ __pycache__/
10
+ *.py[oc]
11
+ build/
12
+ dist/
13
+ wheels/
14
+ *.egg-info
15
+ *.style
16
+ .coverage
17
+ htmlcov/
18
+ # Virtual environments
19
+ .venv
20
+ *.hdf5
21
+ *.h5
22
+ *.sqlite
23
+ *.db
24
+ *.pt
25
+ *.csv
26
+ *.fits
27
+
28
+ sbi-logs/
29
+ plots/
30
+ priv/
31
+ Yggdrasil/
32
+ models/*
33
+ grids
34
+ libraries
35
+ !models/README.txt
36
+ scripts/filters/
37
+ *.joblib
38
+ *.npz
39
+ examples/library_generation/filters/*
40
+
41
+ # Jupyter Notebook checkpoints
42
+ .ipynb_checkpoints
43
+ uv.lock
44
+
45
+ *.log
46
+ *.png
47
+
48
+ .pytest_cache/
49
+ .DS_Store
50
+
51
+ __marimo__
52
+ layouts
53
+
54
+ tests/test_output/*
55
+ tests/test_grids/*
56
+ !tests/test_libraries/sbi_test_library.hdf5
57
+ !tests/test_libraries/sps_test_library.hdf5
58
+ !docs/build/gfx
59
+ !docs/source/example_models/bpass_db_v4/*
60
+ !docs/source/example_libraries/*
@@ -0,0 +1,33 @@
1
+ # This file contains the configuration for pre commit hooks used to sanitise the repository.
2
+ repos:
3
+ # General pre-commit hooks to stop bad things happening.
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: check-merge-conflict # Check for files that contain merge conflict strings.
8
+ - id: check-case-conflict # Ensure we don't have case clashes in the repository.
9
+ - id: check-added-large-files # Prevent large files from being added to the repository.
10
+
11
+ # Linting and formatting for Python.
12
+ - repo: https://github.com/astral-sh/ruff-pre-commit
13
+ # Ruff version.
14
+ rev: v0.11.7
15
+ hooks:
16
+ # Run the linter.
17
+ - id: ruff
18
+ args:
19
+ - --fix
20
+ # Run the formatter.
21
+ - id: ruff-format
22
+
23
+ # Sanitise Jupyter notebooks.
24
+ - repo: https://github.com/srstevenson/nb-clean
25
+ rev: 4.0.1
26
+ hooks:
27
+ - id: nb-clean
28
+ args:
29
+ - --remove-empty-cells
30
+ - --preserve-cell-metadata
31
+ - nbsphinx
32
+ - -M
33
+ - --
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,5 @@
1
+ Author:
2
+
3
+ - `Thomas Harvey <https://github.com/tharvey303>`_
4
+ - `Christopher Lovell <https://github.com/christopherlovell>`_
5
+ - `Sophie Newman <https://github.com/sophie-newman>`_
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ Chris Lovell, christopher.lovell@port.ac.uk.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.