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

Tried to delete useless file #8

Merged
merged 2 commits into from
Jul 8, 2024
Merged
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
4 changes: 2 additions & 2 deletions grasp2alm/beam_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def to_polar(self, copol_axis="x"):
assert copol_axis in ["x", "y"], "Error in BeamCut.to_polar: copol_axis must be 'x' or 'y'"

nphi = int(2 * self.ncut)
ntheta = int(self.vnum // 2)
ntheta = int(self.vnum // 2)+1
theta_rad_min = 0.0
theta_rad_max = np.deg2rad(np.abs(self.vini))
beam_polar = BeamPolar(nphi, ntheta, theta_rad_min, theta_rad_max, self.filename)
amp_tmp = np.zeros((2, nphi, ntheta), dtype=complex)

for i in range(self.ncut):
amp_tmp[:, i, :] = self.amp[:, ntheta:self.vnum-1, i]
amp_tmp[:, i, :] = self.amp[:, ntheta-1:self.vnum+1, i]
amp_tmp[:, self.ncut + i, :] = self.amp[:, ntheta-1::-1, i]

if copol_axis == "x":
Expand Down
Loading