Skip to content

Б12-514 Маланин Артем#178

Open
artemmalanin979-create wants to merge 42 commits into
EvgrafovMichail:mainfrom
artemmalanin979-create:main
Open

Б12-514 Маланин Артем#178
artemmalanin979-create wants to merge 42 commits into
EvgrafovMichail:mainfrom
artemmalanin979-create:main

Conversation

@artemmalanin979-create
Copy link
Copy Markdown

Commit с решением, как вы можете видеть, был сделан вовремя, а вот PR был создан только сейчас, прошу о снисходительности

@Avshugan Avshugan added the 514 label Mar 9, 2026
min_mask = (center < left) & (center < right)
max_mask = (center > left) & (center > right)

mins = np.where(min_mask)[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 нельзя было использовать

)
return (window_sums // window_area).astype(np.uint8)

if image.ndim == 3:
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.

Можно было без if, это сильно бы упростило код

) -> None:
# ваш код
pass
if abscissa.shape != ordinates.shape:
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.

Слишком большая функция получилась, тяжело читать код.


def count_stages(data: list) -> dict:
counts = {"I": 0, "II": 0, "III": 0, "IV": 0}
for item in data:
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.

Почему бы не использовать data.count?

) -> FuncAnimation:
# ваш код
return FuncAnimation()
local_time = np.arange(0, plot_duration, time_step)
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.

У графика нет легенды

"id": "d7b00711",
"metadata": {},
"outputs": [],
"outputs": [
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.

А зачем 1ой части по разному брать размеры? Лучше везде shape использовать. Так нагляднее

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