Giter Club home page Giter Club logo

Comments (3)

AndyFernandes avatar AndyFernandes commented on June 11, 2024
  1. Qubera dos parâmetros das funções
  2. usar spaces em vez do tabs
  3. 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())

  1. Quando tiver quebra de linha com operações, bota o sinal do lado esquerdo
    Exemplo:

income = (gross_wages
+ taxable_interest
+ (dividends - qualified_dividends)

  1. Surround top-level function and class definitions with two blank lines.
  2. Method definitions inside a class are surrounded by a single blank line.
  3. Use blank lines in functions, sparingly, to indicate logical sections.
  4. 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 = x
x + 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.

AndyFernandes avatar AndyFernandes commented on June 11, 2024

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.

AndyFernandes avatar AndyFernandes commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.