Skip to content

Commit

Permalink
Merge pull request #270 from fnalacceleratormodeling/json_update
Browse files Browse the repository at this point in the history
json updates
  • Loading branch information
Sajid Ali authored Apr 26, 2024
2 parents 3fda105 + 5cd1d93 commit ee24758
Show file tree
Hide file tree
Showing 5 changed files with 4,710 additions and 2,282 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:

jobs:
build-and-test:
runs-on: macos-latest
runs-on: macos-13

steps:
- name: Cancel Previous runs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
build-and-test:
runs-on: macos-latest
runs-on: macos-13

steps:
- name: Cancel Previous runs
Expand Down
22 changes: 10 additions & 12 deletions src/synergia/foundation/foundation_pywrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include "synergia/utils/cereal_files.h"
#include "synergia/utils/pybind11_json.hpp"

#include "distribution.h"
#include "four_momentum.h"
#include "pcg_distribution.h"
#include "physical_constants.h"
#include "reference_particle.h"
#include "synergia/utils/cereal_files.h"

#include "normal_form.h"
#include "trigon.h"
Expand Down Expand Up @@ -483,19 +481,19 @@ PYBIND11_MODULE(foundation, m)
"s"_a)

.def("set_bunch_abs_time",
&Reference_particle::set_bunch_abs_time,
"Set the bunch absolute time in [s].",
"t"_a)
&Reference_particle::set_bunch_abs_time,
"Set the bunch absolute time in [s].",
"t"_a)

.def("increment_bunch_abs_time",
&Reference_particle::increment_bunch_abs_time,
"Increment the bunch absolute time dt in [s].",
"dt"_a)
&Reference_particle::increment_bunch_abs_time,
"Increment the bunch absolute time dt in [s].",
"dt"_a)

.def("set_bunch_abs_offset",
&Reference_particle::set_bunch_abs_offset,
"Set the bunch absolute offset time in [s].",
"toffset"_a)
&Reference_particle::set_bunch_abs_offset,
"Set the bunch absolute offset time in [s].",
"toffset"_a)

.def("get_charge",
&Reference_particle::get_charge,
Expand Down
Loading

0 comments on commit ee24758

Please sign in to comment.