Comments (8)
I can't quite tell the difference between this and what I put in the first one. But looks good to me, I agree
from ratinabox.
I guess there are many ways to structure the python packages as there is not strict rule that python does follow. But I do particularly like the following article and a stack over flow answer:-
- https://stackoverflow.com/a/19871661
- https://dev.to/codemouse92/dead-simple-python-project-structure-and-imports-38c6
According to which we can structure the project in the following way :-
├── README.md
├── LICENSE.md
├── demos
├── dist
├── figures
└── ratinabox
├── __init__.py
├── Environments
│ ├── __init__.py
│ ├── Environment.py
│ ├── SubEnvironment.py
│ └── contribs
├── Agents
│ ├── __init__.py
│ ├── Agent.py
│ ├── SubAgent.py
│ └── contribs
├── Neurons
│ ├── __init__.py
│ ├── Neurons.py
│ ├── PlaceCells.py
│ ├── GridCells.py
│ ├── ...
│ └── contribs
├── data
└── utils.py
└── .gitignore
What do you think?
from ratinabox.
I guess there are many ways to structure the python packages as there is not strict rule that python does follow. But I do particularly like the following article and a stack over flow answer:-
* https://stackoverflow.com/a/19871661 * https://dev.to/codemouse92/dead-simple-python-project-structure-and-imports-38c6
According to which we can structure the project in the following way :-
├── README.md ├── LICENSE.md ├── demos ├── dist ├── figures └── ratinabox ├── __init__.py ├── Environments │ ├── __init__.py │ ├── Environment.py │ ├── SubEnvironment.py │ └── contribs ├── Agents │ ├── __init__.py │ ├── Agent.py │ ├── SubAgent.py │ └── contribs ├── Neurons │ ├── __init__.py │ ├── Neurons.py │ ├── PlaceCells.py │ ├── GridCells.py │ ├── ... │ └── contribs ├── data └── utils.py └── .gitignore
What do you think?
The top level can also have the requirements.py , setup.py, ...
from ratinabox.
Closing and continuing discussion on PR #58
from ratinabox.
Just linking this to #64 re changing module names to lower-case to avoid import problems.
from ratinabox.
This could be backwards compatible if in each __init__
we import cells and list them in __all__ = PlaceCells, GridCells,...
from ratinabox.
Updated design:
├── README.md
├── LICENSE.md
├── .gitignore
├── demos
├── dist
├── figures
└── ratinabox
├── __init__.py
├── ends
│ ├── __init__.py
│ ├── Environment.py
│ ├── SubEnvironment.py
│ └── contribs
├── agents
│ ├── __init__.py
│ ├── Agent.py
│ ├── SubAgent.py
│ └── contribs
├── neurons
│ ├── __init__.py
│ ├── Neurons.py
│ ├── PlaceCells.py
│ ├── GridCells.py
│ ├── ...
│ └── contribs
├── data
└── utils.py
from ratinabox.
closing this for now
from ratinabox.
Related Issues (20)
- Small bug relating to PR #101 HOT 1
- history not loaded when importing trajectory HOT 3
- New python version bug HOT 2
- Modules of grid cells with uniform offsets HOT 1
- add error checking to parameter settings HOT 2
- Firingrate norm for BVCs should be unscaled HOT 2
- BVC firingrates go over max_fr HOT 9
- Confused about setting multiple spatial goals in the A2C demo HOT 4
- straight trajectory with fixed speed mean, but Ag.history['vel'] is not constant HOT 5
- Spikes are sliced twice consecutively when plotting timeseries. HOT 2
- Please tag the 1.9.1 release HOT 2
- Minimum required python version currently 3.10 HOT 2
- Agent vector cells HOT 1
- New Actions HOT 3
- AgentVectorCells and FieldOfViewAVCs HOT 3
- Version mismatch in 1.11.0 metadata HOT 1
- Open discussion: Object disappear after Agent passes by HOT 3
- Name swap...
- Speed and place cells HOT 13
- "I" not updated in FeedForward Neurons HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratinabox.