Installation ============ MagicA (Magic Adjustment) can be installed using pip or from source for development. Requirements ------------ MagicA requires Python 3.8 or higher and depends on: * **NumPy** (>=1.20.0) - Numerical computing * **SciPy** (>=1.7.0) - Scientific computing and statistical distributions * **Pandas** (>=1.3.0) - Data structures and analysis * **Matplotlib** (>=3.4.0) - Plotting and visualization * **xarray** (>=0.19.0) - Labeled multi-dimensional arrays * **tqdm** (>=4.62.0) - Progress bars Install via pip --------------- The easiest way to install MagicA is using pip: .. code-block:: bash pip install magica This will automatically install all required dependencies. Install from Source ------------------- For development or to get the latest features: .. code-block:: bash # Clone the repository git clone https://github.com/daniloceano/MagicA.git cd MagicA # Install in development mode pip install -e . Development Installation ------------------------ For contributing to MagicA, install with development dependencies: .. code-block:: bash # Clone the repository git clone https://github.com/daniloceano/MagicA.git cd MagicA # Install with development dependencies pip install -e ".[dev]" This includes additional packages for: * **pytest** - Testing framework * **sphinx** - Documentation generation * **black** - Code formatting * **flake8** - Code linting Verify Installation ------------------- To verify that MagicA is correctly installed: .. code-block:: python import magica as ma import numpy as np # Generate sample data data = np.random.weibull(2, 1000) # Create processor and fit distribution processor = ma.read_data(data) processor.fit_distribution('weibull_min') # Get fitted parameters params = processor.get_fitted_params() print(f"✓ MagicA installed successfully!") print(f"Fitted parameters: {params}") Optional Dependencies --------------------- For Jupyter notebook support: .. code-block:: bash pip install jupyter notebook For enhanced visualization: .. code-block:: bash pip install seaborn Upgrading --------- To upgrade to the latest version: .. code-block:: bash pip install --upgrade magica Uninstalling ------------ To remove MagicA: .. code-block:: bash pip uninstall magica Troubleshooting --------------- Common Issues ~~~~~~~~~~~~~ **ImportError: No module named 'magica'** Make sure MagicA is installed in the active Python environment: .. code-block:: bash pip show magica **SciPy version conflicts** Ensure you have a compatible SciPy version: .. code-block:: bash pip install --upgrade scipy>=1.7.0 **xarray import errors** Install or upgrade xarray: .. code-block:: bash pip install --upgrade xarray>=0.19.0 Getting Help ~~~~~~~~~~~~ If you encounter issues: 1. Check the `GitHub Issues `_ 2. Review the :doc:`tutorials/index` for examples 3. Consult the :doc:`api/core` documentation 4. Open a new issue on GitHub with details about your problem Next Steps ---------- After installation: * Start with the :doc:`quickstart` guide * Explore the :doc:`tutorials/index` * Read about :doc:`api/core` and :doc:`api/auto_fitter` * Check out the :doc:`tutorials/magic_adjuster_tutorial` for comprehensive examples