Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier Bertrand
navipy
Commits
3f95a383
Commit
3f95a383
authored
7 years ago
by
Olivier J.N. Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Add todo
parent
60068603
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
navipy/comparing/__init__.py
+1
-1
1 addition, 1 deletion
navipy/comparing/__init__.py
navipy/processing/test.py
+5
-4
5 additions, 4 deletions
navipy/processing/test.py
setup.py
+37
-35
37 additions, 35 deletions
setup.py
todo
+2
-0
2 additions, 0 deletions
todo
with
45 additions
and
40 deletions
navipy/comparing/__init__.py
+
1
−
1
View file @
3f95a383
...
@@ -4,7 +4,7 @@ compare a current place to a memorised place or
...
@@ -4,7 +4,7 @@ compare a current place to a memorised place or
memorised places.
memorised places.
"""
"""
import
numpy
as
np
import
numpy
as
np
from
Scene_
processing
import
is_ibpc
,
is_obpc
from
navipy.
processing
.tools
import
is_ibpc
,
is_obpc
def
imagediff
(
current
,
memory
):
def
imagediff
(
current
,
memory
):
...
...
This diff is collapsed.
Click to expand it.
navipy/processing/test.py
+
5
−
4
View file @
3f95a383
...
@@ -3,8 +3,8 @@ import sqlite3
...
@@ -3,8 +3,8 @@ import sqlite3
import
numpy
as
np
import
numpy
as
np
import
pandas
as
pd
import
pandas
as
pd
import
os.path
as
path
import
os.path
as
path
from
.
.database
import
database
from
navipy
.database
import
database
import
__init__
as
processing
import
navipy.processing
as
processing
def
is_numeric_array
(
array
):
def
is_numeric_array
(
array
):
...
@@ -64,8 +64,9 @@ def build_test_db():
...
@@ -64,8 +64,9 @@ def build_test_db():
class
TestCase
(
unittest
.
TestCase
):
class
TestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
one_up
=
path
.
abspath
(
path
.
join
(
__file__
,
"
../
"
))
import
os
self
.
mydb_filename
=
one_up
+
'
/database.db
'
print
(
os
.
getcwd
())
self
.
mydb_filename
=
os
.
path
.
abspath
(
'
navipy/resources/database.db
'
)
self
.
mydb
=
database
.
DataBaseLoad
(
self
.
mydb_filename
)
self
.
mydb
=
database
.
DataBaseLoad
(
self
.
mydb_filename
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
37
−
35
View file @
3f95a383
from
distutils.core
import
setup
#!/usr/bin/env python
# from distutils import util
"""
import
site
setup.py for Insect Navigation Toolbox (called navipy)
if
__name__
==
"
__main__
"
:
"""
site_package_path
=
site
.
getsitepackages
()
import
sys
setup
(
import
os
name
=
'
navigationToolbox
'
,
from
setuptools
import
setup
,
find_packages
,
Extension
package_dir
=
{
'
navigationToolbox
'
:
'
src
'
,
excluded
=
[]
'
navigationToolbox.database
'
:
'
src/database
'
,
'
navigationToolbox.processing
'
:
'
src/processing
'
,
# 'navigation-toolbox.rendering': 'src/rendering',
def
exclude_package
(
pkg
):
# 'navigation-toolbox.comparing': 'src/comparing'
for
exclude
in
excluded
:
},
if
pkg
.
startswith
(
exclude
):
packages
=
[
return
True
'
navigationToolbox
'
,
return
False
'
navigationToolbox.database
'
,
'
navigationToolbox.processing
'
,
# 'navigation-toolbox.rendering',
def
create_package_list
(
base_package
):
# 'navigation-toolbox.comparing'
return
([
base_package
]
+
],
[
base_package
+
'
.
'
+
pkg
data_files
=
[
for
pkg
(
site_package_path
[
0
]
+
in
find_packages
(
base_package
)
'
/navigationToolbox
'
,
if
not
exclude_package
(
pkg
)])
[
'
src/database.db
'
])
],
version
=
'
0.1
'
,
setup_dict
=
{
'
name
'
:
'
navipy
'
,
description
=
'
The toolbox used by the research
'
'
version
'
:
'
0.1
'
,
'
group Neurobiology at Bielefeld Univeristy
'
,
'
author
'
:
"
Olivier J.N. Bertrand
"
,
url
=
'
https://lamina.biologie.uni-bielefeld.de/
'
,
'
author_email
'
:
'
olivier.bertrand@uni-bielefeld.de
'
,
author
=
'
Members of the research group
'
,
'
description
'
:
'
Insect Navigation Toolbox
'
,
author_email
=
'
olivier.bertrand@uni-bielefeld.de
'
,
'
packages
'
:
create_package_list
(
"
navipy
"
),
license
=
'
Bielefeld University
'
,
'
requires
'
:
[
'
numpy
'
,
'
pandas
'
,
'
matplotlib
'
,
'
scipy
'
],
)
'
install_requires
'
:
[
"
numpy
"
,
'
pandas
'
,
'
matplotlib
'
,
'
scipy
'
]}
setup
(
**
setup_dict
)
This diff is collapsed.
Click to expand it.
todo
0 → 100644
+
2
−
0
View file @
3f95a383
- Fix db in test function such that it work from any location. (probably need to add a module resources and function to load them)
- Test are failing WHY???
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