You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+79-11Lines changed: 79 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,93 @@ Non-affine transforms can simualate complex shear effects such as intrinsic
10
10
alignment, flexion, and optical field distrotion maps. Custom transform
11
11
functions can also be passed to Stamp objects.
12
12
13
-
## Installation
13
+
## Building and installing BATSim from source (Conda + GalSim C++)
14
14
15
-
The package is not currently available on PyPI while in early development.
15
+
The package is not currently available on PyPI and only installable on Linux while in early development. We suggest using conda/mamba to build the package and install its dependencies. This is because the primary dependency, Galsim, does not ship a pre-built C++ library via pip.
16
16
17
-
First clone the repository:
18
-
```shell
17
+
The below instructions will work with pure conda, but we recommend using mamba to make the installation of dependencies much quicker.
18
+
19
+
First, make sure to clone and switch to the repository root:
- The above will install the python package of the dependence GalSim. However, you may need to install the C++ shared library of GalSim, not installed by default with the above installation. Find details on how to do this [here][https://galsim-developers.github.io/GalSim/_build/html/install_pip.html]. You may then need to update your LD\_LIBRARY\_PATH, LIBRARY\_PATH, and CPLUS\_INCLUDE\_PATH to point to build and include folders for the GalSim C++ shared library.
61
+
## Development Installation (Editable)
62
+
63
+
For development you can install BATSim in editable mode so that Python changes
64
+
take effect immediately without reinstalling.
65
+
66
+
### 1. Create a development environment and activate
67
+
68
+
Note: You may encounter issues if some of these packages are already installed locally and have different builds. To fix, remove them and ensure they are installed through conda-forge.
We currently do not provide a pip only installation route as Galsim requires the shared C++ library to be built and linked manually when installed via pip. If you wish to build via pip only, you will need to install all dependencies and build and link the Galsim C++ headers. You can find details on how to do this [here][https://galsim-developers.github.io/GalSim/_build/html/install_pip.html]. You may then need to update your LD\_LIBRARY\_PATH, LIBRARY\_PATH, and CPLUS\_INCLUDE\_PATH to point to build and include folders for the GalSim C++ shared library.
31
98
99
+
We plan to add a pure pip installation route in future.
0 commit comments