Skip to content

Commit

Permalink
Fix setup (#149)
Browse files Browse the repository at this point in the history
* explicit garbage collect

* Added required C++ files in MANIFEST
  • Loading branch information
kiliakis authored Jul 15, 2019
1 parent abfe618 commit 27bd1d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ recursive-include blond/cpp_routines *.la
recursive-include blond/cpp_routines *.a
recursive-include blond/cpp_routines *.cpp
recursive-include blond/cpp_routines *.h
recursive-include blond/beam *.cpp
recursive-include blond/synchrotron_radiation *.cpp
recursive-include blond/toolbox *.cpp
2 changes: 1 addition & 1 deletion blond/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.10'
__version__ = '2.0.11'
4 changes: 2 additions & 2 deletions blond/beam/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from ..beam.profile import Profile, CutOptions
from ..trackers.utilities import potential_well_cut, minmax_location


def matched_from_line_density(beam, full_ring_and_RF, line_density_input=None,
main_harmonic_option='lowest_freq',
TotalInducedVoltage=None, plot=False,
Expand Down Expand Up @@ -356,10 +355,11 @@ def matched_from_line_density(beam, full_ring_and_RF, line_density_input=None,

# Calculating the induced voltage
induced_voltage_object.induced_voltage_sum()

gc.collect()
return [hamiltonian_coord, distribution_function_], \
induced_voltage_object
else:
gc.collect()
return [hamiltonian_coord, distribution_function_],\
[time_line_den, line_density_]

Expand Down

0 comments on commit 27bd1d2

Please sign in to comment.