Skip to content

Б12-514 Макаров Матвей#172

Open
korolinakila wants to merge 30 commits intoEvgrafovMichail:mainfrom
korolinakila:main
Open

Б12-514 Макаров Матвей#172
korolinakila wants to merge 30 commits intoEvgrafovMichail:mainfrom
korolinakila:main

Conversation

@korolinakila
Copy link
Copy Markdown

No description provided.

@Avshugan Avshugan added the 514 label Mar 9, 2026
azimuth = np.arctan2(ordinates, abscissa)
inclination = np.arccos(applicates / distances)

return tuple(distances, azimuth, inclination) No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У меня не работает, если у вас иначе покажите после семинара

ordinates: np.ndarray,
applicates: np.ndarray,
) -> tuple[np.ndarray, np.ndarray, np.ndarray]: ...
def convert_to_sphere(abscissa: np.ndarray, ordinates: np.ndarray, applicates: np.ndarray,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не проходит ruff format

@@ -6,14 +6,24 @@ class ShapeMismatchError(Exception):


def convert_from_sphere(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не проходит ruff format

maximum = (ordinates[1:-1] > ordinates[:-2]) & (ordinates[1:-1] > ordinates[2:])
minimum = (ordinates[1:-1] < ordinates[:-2]) & (ordinates[1:-1] < ordinates[2:])

maxima_inds = np.where(maximum)[0] + 1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.where нельзя было использовать

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants