Comments (8)
Exactly!
I would generally default to having my scripts in a directory called src/
, but you could also give it a different a name (I think technically this is supposed to be good practice - https://docs.python-guide.org/writing/structure/).
from covpol.
+1 for giving the directory a package-like name. This may be one of the reason I was having problems with importing libraries things in the tests (#14)
How about covid
or covpol
?
from covpol.
+1 for giving the directory a package-like name. This may be one of the reason I was having problems with importing libraries things in the tests (#14)
How aboutcovid
orcovpol
?do you refer the whole repository or just the folder with the code? I think src for scripts makes sense? But happy to name the whole repository covpol?
Just the folder with the code. Then the code becomes a 'package'. The advantage to this is that you can import it from elsewhere (like in the tests) with:
from covpol.agent_classs import CountryAgent
rather than
from src.agent_classs import CountryAgent
from covpol.
done
from covpol.
hmm oh never had that ever. but okay, i think with the relative paths now that should not be an issue, should it?
from covpol.
Exactly!
I would generally default to having my scripts in a directory called
src/
, but you could also give it a different a name (I think technically this is supposed to be good practice - https://docs.python-guide.org/writing/structure/).
okay. I did not know that either :)
from covpol.
+1 for giving the directory a package-like name. This may be one of the reason I was having problems with importing libraries things in the tests (#14)
How about
covid
orcovpol
?
do you refer the whole repository or just the folder with the code? I think src for scripts makes sense? But happy to name the whole repository covpol?
from covpol.
+1 for giving the directory a package-like name. This may be one of the reason I was having problems with importing libraries things in the tests (#14)
How about
covid
orcovpol
?
My vote would be for covpol
of those two.
from covpol.
Related Issues (15)
- Comments on Yannick's code HOT 1
- Code at the beginning of class source files HOT 1
- Beautiful documentation :-)
- A collection of minor comments ... HOT 1
- `ClassMethod` HOT 1
- Full replication/code run by external? e.g. Keiran? HOT 9
- Change branch name: `master` -> `main` HOT 2
- Submission HOT 2
- Use random seed for reproducibility HOT 4
- Add brief description to "About" section HOT 3
- Building the environment failed HOT 5
- Great readme! HOT 1
- File paths only work on Yannick's laptop HOT 12
- Can't find `number_of_particles_experiment_MSE.py` HOT 2
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 covpol.