Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sphinx conf.py to RTD config #2681

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

build:
os: ubuntu-22.04
os: ubuntu-24.04
apt_packages:
- ffmpeg
- graphviz
Expand All @@ -14,3 +14,6 @@ python:
path: .
extra_requirements:
- docs

sphinx:
configuration: docs/conf.py
2 changes: 1 addition & 1 deletion src/ctapipe/calib/camera/calibrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _calibrate_dl0(self, event, tel_id):

dl0_pixel_status = r1.pixel_status.copy()
# set dvr pixel bit in pixel_status for pixels kept by DVR
dl0_pixel_status[signal_pixels] |= PixelStatus.DVR_STORED_AS_SIGNAL
dl0_pixel_status[signal_pixels] |= np.uint8(PixelStatus.DVR_STORED_AS_SIGNAL)
# unset dvr bits for removed pixels
dl0_pixel_status[~signal_pixels] &= ~np.uint8(PixelStatus.DVR_STATUS)

Expand Down
4 changes: 2 additions & 2 deletions src/ctapipe/io/simteleventsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,8 @@ def _get_r1_pixel_status(self, tel_id, selected_gain_channel):
low_gain_stored = selected_gain_channel == GainChannel.LOW

# set gain bits
pixel_status[high_gain_stored] |= PixelStatus.HIGH_GAIN_STORED
pixel_status[low_gain_stored] |= PixelStatus.LOW_GAIN_STORED
pixel_status[high_gain_stored] |= np.uint8(PixelStatus.HIGH_GAIN_STORED)
pixel_status[low_gain_stored] |= np.uint8(PixelStatus.LOW_GAIN_STORED)

# reset gain bits for completely disabled pixels
disabled = tel_desc["disabled_pixels"]["HV_disabled"]
Expand Down
Loading