Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyAmak - noyau
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMAC
AMAK
Python
PyAMAK
pyAmak - noyau
Commits
7a268acc
Commit
7a268acc
authored
4 years ago
by
shinedday
Browse files
Options
Downloads
Patches
Plain Diff
testing to csv
parent
3b3dd420
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyAmakCore/classes/amas.py
+1
-0
1 addition, 0 deletions
pyAmakCore/classes/amas.py
pyAmakCore/tests/test_csv/main.py
+42
-0
42 additions, 0 deletions
pyAmakCore/tests/test_csv/main.py
with
43 additions
and
0 deletions
pyAmakCore/classes/amas.py
+
1
−
0
View file @
7a268acc
...
@@ -3,6 +3,7 @@ Amas Class
...
@@ -3,6 +3,7 @@ Amas Class
"""
"""
from
threading
import
Thread
from
threading
import
Thread
from
typing
import
List
from
typing
import
List
import
sys
import
sys
import
pathlib
import
pathlib
...
...
This diff is collapsed.
Click to expand it.
pyAmakCore/tests/test_csv/main.py
0 → 100644
+
42
−
0
View file @
7a268acc
import
pandas
from
pyAmakCore.classes.amas
import
Amas
from
pyAmakCore.classes.environment
import
Environment
from
pyAmakCore.classes.agent
import
Agent
class
SimpleAgent
(
Agent
):
"""
test
"""
class
SimpleAmas
(
Amas
):
"""
test
"""
def
on_initial_agents_creation
(
self
)
->
None
:
for
i
in
range
(
10
):
self
.
add_agent
(
Agent
(
self
))
def
to_csv
(
self
):
print
(
pandas
.
DataFrame
([{
**
vars
(
x
),
**
{
'
nombre_cycle
'
:
self
.
get_cycle
()}}
for
x
in
self
.
get_agents
()]).
to_csv
())
class
SimpleEnv
(
Environment
):
"""
test
"""
env
=
SimpleEnv
()
amas
=
SimpleAmas
(
env
)
amas
.
to_csv
()
"""
There are no visible memory leak in pyAmakCore
"""
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment