Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
PHY571 Birds flocking
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quentin LOUIS
PHY571 Birds flocking
Commits
6bbe3f3d
Commit
6bbe3f3d
authored
Nov 06, 2018
by
Quentin LOUIS
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.binets.fr:quentin.louis/phy571-birds-flocking
parents
6e82e2d7
c6e1c423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Amaury/God/Sky.py
Amaury/God/Sky.py
+2
-6
No files found.
Amaury/God/Sky.py
View file @
6bbe3f3d
...
...
@@ -78,9 +78,5 @@ class Sky:
bird
=
Bird
(
np
.
random
.
rand
(
2
)
*
self
.
L
,
vel
,
ang_vel
,
theta
)
self
.
add_bird
(
bird
)
def
vel_max
(
self
)
->
float
:
vel_max
=
0
for
bird
in
self
.
birds
:
if
(
vel_max
<
bird
.
vel
):
vel_max
=
bird
.
vel
return
vel_max
def
get_max_vel
(
self
)
->
float
:
return
np
.
max
([
bird
.
vel
for
bird
in
self
.
birds
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment