Environsarcmin=DEGREEs(v/(1000*dMPC))*60
sc =sKyCoO(ra*U.deg,dec*U.deg,frame='icrs')
vs.
environs_arcmin = degrees(value_in_kpc / (1000 * distance)) * 60
sc = SkyCoord(ra*u.deg, dec*u.deg, frame='icrs')
BUT: "A Foolish Consistency is the Hobgoblin of Little Minds"
-Emerson... and GvR
https://www.python.org/dev/peps/pep-0008/
CamelCase : class namessnake_case : packages, modules, functions jamitalltoegether: variables)if_ = 10 (but also probably just don't do this)c = a + b not c=a+bdef function(a=1, b=3)* or / don't need spaces because of math: y = m*x + bimport os
import sys
not
import os, sys
import os
import sys
import numpy as np
import some_really_long_package_name
function(with, some, arguments)
is the same as
function(with,
some,
arguments)
a + very + long +expression / that(goes + a + bit longer + than + 80,
characters + so + we + have + to + think)
(This is the most controversial guideline...)