From ac9ca76af33434aa5c6871bdc058c75cfcdcd209 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Tue, 10 Nov 2026 19:04:29 +0000 Subject: [PATCH] docs: improve public entry points and retire stale guidance --- CODE_OF_CONDUCT.md | 2 +- README.rst | 181 ++++++++++++++++++--------------------------- notes | 23 ------ runtime.txt | 2 +- welcome.py | 2 +- 5 files changed, 74 insertions(+), 136 deletions(-) delete mode 100644 notes diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3b5671a..bcf7cca 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -2,4 +2,4 @@ PyAutoLabs uses one Code of Conduct across all of its repositories. -Read the [canonical PyAutoLabs Code of Conduct](https://github.com/PyAutoLabs/PyAutoScientist/blob/main/CODE_OF_CONDUCT.md). +Read the [canonical PyAutoLabs Code of Conduct](https://github.com/PyAutoLabs/.github/blob/main/CODE_OF_CONDUCT.md). diff --git a/README.rst b/README.rst index 16277eb..a672551 100644 --- a/README.rst +++ b/README.rst @@ -1,110 +1,71 @@ -PyAutoCTI Workspace -==================== - -.. |binder| image:: https://mybinder.org/badge_logo.svg - :target: https://mybinder.org/v2/gh/Jammy2211/autocti_workspace/HEAD - -|binder| - -`Installation Guide `_ | -`readthedocs `_ | - -Welcome to the **PyAutoCTI** Workspace. You can get started right away by going to the `autocti workspace -Binder `_. -Alternatively, you can get set up by following the installation guide on our `readthedocs `_. - -Getting Started ---------------- - -We recommend new users begin by looking at the following notebooks: - -- ``notebooks/overview``: Examples giving an overview of **PyAutoCTI**'s core features. - -Installation ------------- - -If you haven't already, install `PyAutoCTI via pip or conda `_. - -Next, clone the ``autocti workspace`` (the line ``--depth 1`` clones only the most recent branch on -the ``autocti_workspace``, reducing the download size): - -.. code-block:: bash - - cd /path/on/your/computer/you/want/to/put/the/autocti_workspace - git clone https://github.com/Jammy2211/autocti_workspace --depth 1 - cd autocti_workspace - -Run the ``welcome.py`` script to get started! - -.. code-block:: bash - - python3 welcome.py - -Workspace Structure -------------------- - -The workspace includes the following main directories: - -- ``notebooks``: **PyAutoCTI** examples written as Jupyter notebooks. -- ``scripts``: **PyAutoCTI** examples written as Python scripts. -- ``config``: Configuration files which customize **PyAutoCTI**'s behaviour. -- ``dataset``: Where data is stored, including example datasets distributed. -- ``output``: Where the **PyAutoCTI** analysis and visualization are output. - -The examples in the ``notebooks`` and ``scripts`` folders are structured as follows: - -- ``overview``: Examples giving an overview of **PyAutoCTI**'s core features. - -- ``dataset_1d``: Examples for analysing and simulating 1D CTI datasets (e.g. warm pixels). -- ``imaging_ci``: Examples for analysing and simulating CCD charge injection imaging data (e.g. Euclid). - -- ``results``: Examples using the results of a model-fit, including database tools which loads results from hard-disk. -- ``plot``: An API reference guide for **PyAutoCTI**'s plotting tools. -- ``misc``: Miscellaneous scripts for specific cti analysis. - -Inside these packages are packages titled ``advanced`` which only users familiar **PyAutoCTI** should check out. - -In the ``dataset_1d`` and ``imaging_ci`` folders you'll find the following packages: - -- ``correction``: Examples of how to correct data with a CTI model. -- ``modeling``: Examples of how to fit a CTI model to data via a non-linear search. -- ``simulators``: Scripts for simulating realistic CTI calibration datasets. -- ``data_preparation``: Tools to preprocess CTI calibration data before an analysis (e.g. cosmic ray flagging). - -- ``advanced/chaining``: Advanced modeling scripts which chain together multiple non-linear searches. - -The files ``README.rst`` distributed throughout the workspace describe what is in each folder. - -Getting Started ---------------- - -We recommend new users begin with the example notebooks / scripts in the *overview* folder and the **HowToCTI** -tutorials. - -Workspace Version ------------------ - -This version of the workspace is built and tested for using **PyAutoCTI v2024.5.16.0**. - -Contribution ------------- -To make changes in the tutorial notebooks, please make changes in the corresponding python files(.py) present in the -``scripts`` folder of each chapter. Please note that marker ``# %%`` alternates between code cells and markdown cells. - -The notebooks also carry Colab Gemini instructions in their metadata, built from the skills mapped in -`autocti_assistant `_ ``colab/contexts.yaml``. After regenerating -or adding notebooks, re-apply them from this workspace's root with -``/bin/autohands gemini_context apply notebooks --project autocti --assistant-root ``. -It reports how many notebooks it stamped; ``Stamped 0 notebooks`` means it was run from the wrong folder. - - -Support -------- - -Support for installation issues, help with cti modeling and using **PyAutoCTI** is available by -`raising an issue on the autocti_workspace GitHub page `_. or -joining the **PyAutoCTI** `Slack channel `_, where we also provide the latest updates on -**PyAutoCTI**. - -Slack is invitation-only, so if you'd like to join send an `email `_ requesting an -invite. +PyAutoCTI Workspace +=================== + +Example scripts and notebooks for simulating, calibrating and correcting charge transfer inefficiency (CTI) in CCD detectors with **PyAutoCTI**. Start with an introduction to CTI, then explore the tools for your own calibration data. + +Getting Started +--------------- + +Explore It Yourself +~~~~~~~~~~~~~~~~~~~ + +- `Start with the introduction `_ — learn what CTI is and how it affects CCD images. +- `Run it locally `_ — follow the installation guide, then open ``notebooks/overview/overview_1_what_is_cti.ipynb``. +- `Read the documentation `_ — explore the concepts and examples in your browser. + +See `Find Your Examples`_ below to choose where to start. + +Explore with AI +~~~~~~~~~~~~~~~ + +The `PyAutoCTI AI Assistant `_ helps you learn about CTI and work through calibration examples through conversation. Visit its README for setup instructions and a starting prompt. + +Find Your Examples +------------------ + +Examples are available as Python scripts in ``scripts/`` and Jupyter notebooks in ``notebooks/``. + +.. list-table:: + :header-rows: 1 + :widths: 55 45 + + * - I want to… + - Start here + * - Learn about CTI and how calibration works + - `Overview `_ + * - Simulate or fit one-dimensional CTI data + - `1D datasets `_ + * - Simulate or fit charge injection images + - `Charge injection imaging `_ + * - Correct data using a CTI model + - `1D correction `_ · `Imaging correction `_ + * - Inspect calibration results + - `Results `_ + * - Visualise datasets and models + - `Plotting `_ + +Each folder has a README explaining its examples. You’ll find sample data in ``dataset/``; analysis results are written to ``output/``. + +Learn About CTI +--------------- + +The `overview examples `_ introduce parallel and serial charge transfer, the features CTI leaves in data, and how to fit and calibrate a CTI model. + +For help alongside the examples, ask the PyAutoCTI AI Assistant to explain the detector physics or walk you through a calibration. + +Community and Contributing +-------------------------- + +Ask questions, suggest improvements and share your work in `PyAutoLabs Discussions `_. + +To contribute, see the `PyAutoCTI contribution guide `_. + +Citations +--------- + +If you use PyAutoCTI in your research, see the `citation guide `_. + +License +------- + +See the `PyAutoCTI license `_. diff --git a/notes b/notes deleted file mode 100644 index e16e1b5..0000000 --- a/notes +++ /dev/null @@ -1,23 +0,0 @@ -Review: - -- results package. -- database package. -- Go over overview package. -- Add time evoltuion exampels, incuding database example. -- Go over all data preparation scripts (e.g. use new CR flagging). -- Go over modeling / chaining scripts. -- New no gsl package with Richard's improvements, add installation docs. - -Euclid: - -- FPR pixel label in all 1D datasets (e.g. normalized residuals). -- Use region list to not plot irrelevant regions. -- Zoom in on pixels based on where model fit goes close to zero. -- Add chi2 to plots. - - -- Data with noise map standard visusal. -- Data Prepration (new CR stuff, remove LAcosmic)/ -- Plots start here -- Results tutorials. -- Database + temporal examples, make mature, include in readthedocs. \ No newline at end of file diff --git a/runtime.txt b/runtime.txt index 3cd3102..1781745 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8 \ No newline at end of file +python-3.12.1 diff --git a/welcome.py b/welcome.py index 784981f..e1b9447 100644 --- a/welcome.py +++ b/welcome.py @@ -136,7 +136,7 @@ "###############################\n\n" """ PyAutoCTI is now set up and you can begin exploring the workspace. We recommend new users begin by following the - 'introduction.ipynb' notebook, which gives an overview of PyAutoCTI and the workspace. + 'notebooks/overview/overview_1_what_is_cti.ipynb' notebook, which gives an overview of PyAutoCTI and the workspace. Examples are provided as both Jupyter notebooks in the 'notebooks' folder and Python scripts in the 'scripts' folder. It is up to you how you would prefer to use PyAutoCTI. With these folders, you can find the following