Skip to content

Commit

Permalink
Merge branch 'master' into remove_hillas_cameraframe
Browse files Browse the repository at this point in the history
  • Loading branch information
StFroese committed Jan 13, 2023
1 parent 712e436 commit 84ceeb7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 18 deletions.
15 changes: 0 additions & 15 deletions ctapipe/core/tests/test_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,18 +363,3 @@ def stuff(self):

expected = "A list of Base subclass names. Possible values: ['Foo', 'Bar']"
assert MyListComponent.base_names.help == expected


@pytest.mark.parametrize(
"trait_type",
[IntTelescopeParameter, FloatTelescopeParameter, BoolTelescopeParameter],
)
def test_telescope_parameter_none(trait_type, mock_subarray):
class Foo(TelescopeComponent):
bar = trait_type(default_value=None, allow_none=True).tag(config=True)

assert Foo(mock_subarray).bar.tel[1] is None
assert Foo(mock_subarray, bar=None).bar.tel[1] is None

f = Foo(mock_subarray, bar=[("type", "*", 1), ("id", 1, None)])
assert f.bar.tel[1] is None
1 change: 0 additions & 1 deletion ctapipe/core/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ def run(self, argv=None, raises=False):
# remove handler to not impact performance with regex matching
self.log.removeHandler(self.trait_warning_handler)

<<<<<<< HEAD
self.start()
self.finish()
self.log.info(f"Finished: {self.name}")
Expand Down
1 change: 0 additions & 1 deletion ctapipe/core/traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pathlib
from urllib.parse import urlparse

import numpy as np
import traitlets
import traitlets.config
from astropy.time import Time
Expand Down
1 change: 0 additions & 1 deletion ctapipe/reco/tests/test_ImPACT.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from ctapipe.containers import (
HillasParametersContainer,
ReconstructedGeometryContainer,
ReconstructedEnergyContainer,
ReconstructedGeometryContainer,
)
Expand Down
1 change: 1 addition & 0 deletions docs/changes/2134.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix for Hillas lines in ``ArrayDisplay`` being wrong in the new ``EastingNorthingFrame``.
6 changes: 6 additions & 0 deletions docs/changes/2141.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Drop support for ``CameraFrame`` in ``ImageProcessor``

``ImageProcessor`` now only uses the ``TelescopeFrame`` to perform all image operations.
This also drops support for calculating the ``HillasParameters`` in ``CameraFrame``.

Reading files with DL1 parameters in ``CameraFrame`` is also no longer supported.
1 change: 1 addition & 0 deletions docs/changes/2155.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace usage of ``$HOME`` with ``Path.home()`` for cross-platform compatibility.
2 changes: 2 additions & 0 deletions docs/changes/2163.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix for ``TableLoader`` having the wrong data types for ``obs_id``,
``event_id`` and ``tel_id``.
1 change: 1 addition & 0 deletions docs/changes/2171.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``Tool`` printing a large traceback in case of certain configuration errors.
2 changes: 2 additions & 0 deletions docs/changes/2173.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The string representation of ``Field`` now sets numpy print options
to prevent large arrays in the docstrings of ``Container`` classes.

0 comments on commit 84ceeb7

Please sign in to comment.