Skip to content

Commit

Permalink
replaced ObserverPoint by Observer1D in all notebooks and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reichherzerp committed Nov 10, 2022
1 parent 643791e commit f651bba
Show file tree
Hide file tree
Showing 10 changed files with 324 additions and 369 deletions.
2 changes: 1 addition & 1 deletion doc/pages/Cpp-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main(void) {
sim.add(new MinimumEnergy(1*EeV));

ref_ptr<Observer> obs = new Observer();
obs->add(new ObserverPoint());
obs->add(new Observer1D());
obs->onDetection(new TextOutput("events.txt", Output::Event1D));
obs->onDetection(new TextOutput());
sim.add(obs);
Expand Down
199 changes: 95 additions & 104 deletions doc/pages/example_notebooks/basics/basics.v4.ipynb

Large diffs are not rendered by default.

74 changes: 33 additions & 41 deletions doc/pages/example_notebooks/photon_propagation/cascade_1d.ipynb

Large diffs are not rendered by default.

76 changes: 34 additions & 42 deletions doc/pages/example_notebooks/secondaries/neutrinos.v4.ipynb

Large diffs are not rendered by default.

202 changes: 98 additions & 104 deletions doc/pages/example_notebooks/secondaries/photons.v4.ipynb

Large diffs are not rendered by default.

112 changes: 52 additions & 60 deletions doc/pages/example_notebooks/secondaries/secondary_photons.ipynb

Large diffs are not rendered by default.

22 changes: 8 additions & 14 deletions doc/pages/example_notebooks/sim1D/sim1D.v4.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/testBreakCondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ TEST(ObserverFeature, LargeSphere) {

TEST(ObserverFeature, Point) {
Observer obs;
obs.add(new ObserverPoint());
obs.add(new Observer1D());
Candidate c;
c.setNextStep(10);

Expand Down
2 changes: 1 addition & 1 deletion test/testOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ TEST(ParticleCollector, getTrajectory) {
sim->add(new SimplePropagation(1, 1));

ref_ptr<Observer> obs = new Observer();
obs->add(new ObserverPoint());
obs->add(new Observer1D());
obs->onDetection(output);
sim->add(obs);

Expand Down
2 changes: 1 addition & 1 deletion test/testSimulationExecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def runTest(self):

# observer
obs = crp.Observer()
obs.add(crp.ObserverPoint())
obs.add(crp.Observer1D())
sim.add(obs)

# output
Expand Down

0 comments on commit f651bba

Please sign in to comment.