Skip to content

Conversation

@akubara55
Copy link

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented Nov 8, 2022

This pull request introduces 1 alert when merging 493d0c7 into fa45ea5 - view on LGTM.com

new alerts:

  • 1 for Module imports itself

Copy link
Owner

@vongostev vongostev left a comment

Choose a reason for hiding this comment

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

Жду исправления замечаний.

return disp


if __name__ == '__main__':
Copy link
Owner

Choose a reason for hiding this comment

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

Написано неплохо, но тесты ничего не тестируют, нет количественного критерия правильности работы кода.

Copy link
Owner

Choose a reason for hiding this comment

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

Ага, нашел, что надо вводить числа в инпут. Хорошо бы сделать уведомление об этом, например

l = int(input("Введите среднее тестового распределения:"))

Copy link
Owner

Choose a reason for hiding this comment

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

Эти же замечания относятся и ко второму заданию.

@vongostev vongostev added this to the Ex.1 milestone Nov 8, 2022
@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2022

This pull request introduces 1 alert when merging 26482de into fa45ea5 - view on LGTM.com

new alerts:

  • 1 for Module imports itself

@lgtm-com
Copy link

lgtm-com bot commented Nov 15, 2022

This pull request introduces 1 alert when merging 8377d68 into fa45ea5 - view on LGTM.com

new alerts:

  • 1 for Module imports itself

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@vongostev
Copy link
Owner

Задание принимаю.

@vongostev vongostev modified the milestones: Ex.1, Ex.3 Nov 24, 2022
@vongostev
Copy link
Owner

В целом хорошо. Есть недочеты, но мелкие. Например, вот тут стоит использовать другой вариант итерации
list_x = [self.cosmic_bodies[i].vec_r[0] for i in range(len(self.cosmic_bodies))]
А тут использовать итерацию и zip

sun = CosmicBody(mass = 10000, vec_r = np.array([0, 0, 0]), vec_v = np.array([0, 0, 0]), t = 0, color = 'y', size = 20)
body_1 = CosmicBody(mass = data[1, 7], vec_r = data[1, :3], vec_v = data[1, 3:6], t = data[1, 6], color = 'b', size = 5)
body_2 = CosmicBody(mass = data[2, 7], vec_r = data[2, :3], vec_v = data[2, 3:6], t = data[2, 6], color = 'r', size = 2)
body_3 = CosmicBody(mass = data[3, 7], vec_r = data[3, :3], vec_v = data[3, 3:6], t = data[3, 6], color = 'm', size = 7)

Зачет ставлю

@vongostev vongostev modified the milestones: Ex.3, Ex.4 Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants