Comments (3)
- Qubera dos parâmetros das funções
- usar spaces em vez do tabs
- Quando a linha de código tiver grande, acima de 79 caracteres , quebra alinha com a
Exemplo:
with open('/path/to/some/file/you/want/to/read') as file_1,
open('/path/to/some/file/being/written', 'w') as file_2:
file_2.write(file_1.read())
- Quando tiver quebra de linha com operações, bota o sinal do lado esquerdo
Exemplo:
income = (gross_wages
+ taxable_interest
+ (dividends - qualified_dividends)
- Surround top-level function and class definitions with two blank lines.
- Method definitions inside a class are surrounded by a single blank line.
- Use blank lines in functions, sparingly, to indicate logical sections.
- Imports :
Yes: import os
import sys
from subprocess import Popen, PIPE
- ira_deduction
9. Botar as coisas no init como author_, all e version
10. Padronizar para 2 aspas
11. Mudar tudo que tem referencia pros dados para 'move_data'
12. Espaços ajeitar pra esse modelo
Yes: spam(ham[1], {eggs: 2})
Yes: foo = (0,)
Yes: if x == 4: print x, y; x, y = y, x
ham[1:9], ham[1:9:3], ham[:9:3], ham[1::3], ham[1:9:]
ham[lower:upper], ham[lower:upper:], ham[lower::step]
ham[lower+offset : upper+offset]
ham[: upper_fn(x) : step_fn(x)], ham[:: step_fn(x)]
ham[lower + offset : upper + offset]
x = 1
y = 2
long_variable = 3
i = i + 1
submitted += 1
x = x2 - 1
hypot2 = xx + y*y
c = (a+b) * (a-b)
def munge(input: AnyStr): ...
def munge() -> PosInt: ...
def complex(real, imag=0.0):
return magic(r=real, i=imag)
13. Comentários inline.
NÃO FAÇA ISSO:
x = x + 1 # Increment x
14. padronizar funções como
lower_case_with_underscores
single_leading_underscore: weak "internal use"
class = used by convention to avoid conflicts with Python keyword
15.Be consistent in return statements. Either all return statements in a function should return an expression, or none of them should. If any return statement returns an expression, any return statements where no value is returned should explicitly state this as return None, and an explicit return statement should be present at the end of the function (if reachable).
def foo(x):
if x >= 0:
return math.sqrt(x)
else:
return None
from pymove.
utils
conversions - Andreza
datetime - Arina
distances - Arina
math - Andreza
mem - Arina
trajectories - Andreza
transformations - Arina
visualization - Andreza
filters - Arina
map - Arina
segmentation - Arina
core
grid - Andreza (antiga pra terminar)
29 Andreza e Arina
from pymove.
Funções com dúvidas:
map-matching
check_time_dist
fix_time_not_in_ascending_order_id
fix_time_not_in_ascending_order_all
interpolate_add_deltatime_speed_features
math
std
avg_std
std_sample
avg_std_sample
utils
-
trajectories
log_progress -
transformations
feature_values_using_filter_and_indexes
feature_values_using_filter
from pymove.
Related Issues (20)
- Integrar o vaex ao core do pymove
- Function inplace by default
- Muito bom o pacote!
- [docs] filters.clean_gps_nearby_points_by_distances radius lacking unit of measure HOT 1
- Turn off prints HOT 1
- [docs] clean_gps_jumps_by_distance lacks algorithm explanation
- How to carry around a feature column? HOT 1
- How to Cite Cite PyMove in an academic paper? HOT 2
- Folium throwing a bunch of errors HOT 1
- does someone is working on pymove.models.pattern_mining.moving_together_patterns module?
- Units - no units on stay points inputs; is it possible to use arbitrary x,y units
- create_or_update_move_stop_by_dist_time - does not create stay point using distance
- ImportError: cannot import name 'FilePathOrBuffer' from 'pandas._typing' HOT 1
- Support for pandas >=1.4.0
- Ajuste no ReadMe - Ambientes virtuais e Modo de Desenvolvimento
- Ajustes na documentacao de visualization
- Ajustes nas funções de visualization
- Ajustes nas funções de preprocessing
- Ajustes nas funções de utils
- MoveDataFrame.show_trajectories_info() shows Start Data and End Data in wrong order
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 pymove.