def describe(self): """ Prints out a human readable description """ print("Datamodel {}".format(self.content)) print(indent(self.ivo_id)) print()
def describe(self): """ Prints out a human readable description """ print("Upload method supported") print(indent(self.ivo_id)) print()
def __repr__(self): comp_str = ', '.join(self.components.colnames) unit_str = ', '.join([str(col.unit) for col in self.components.itercols()]) data_str = indent(str(self.components.as_array())) err_str = '<SkyCoordErr ({}): ({}) in {}\n{}>' return err_str.format(self.errtype, comp_str, unit_str, data_str)
def describe(self): print(self.name) if self.description is not None: print(indent(self.description)) else: print('No description') print()
def describe(self): """ Prints out a human readable description """ print("Language {}".format(self.name)) for languagefeaturelist in self.languagefeaturelists: print(indent(languagefeaturelist.type)) for feature in languagefeaturelist: print(indent(feature.form, shift=2)) if feature.description: print(indent(feature.description, shift=3)) print() print()
def __repr__(self) -> str: """String representation.""" r = super().__repr__() r = r[r.index("at") + 3:] # noqa: E203 # includes ">" # the potential ps = repr(self.__wrapped__).strip() ps = ps[1:] if ps.startswith("<") else ps ps = ps[:-1] if ps.endswith(">") else ps # the frame fs = repr(self.frame).strip() fs = fs[1:] if fs.startswith("<") else fs fs = fs[:-1] if fs.endswith(">") else fs return "\n".join(( self.__class__.__name__ + ": at <" + r, indent("potential : " + ps), indent("frame : " + fs), ), )
def describe(self): """ Prints out a human readable description """ print('Output format {}'.format(self.mime)) if self.aliases: print(indent('Also available as {}'.format( ', '.join(self.aliases)))) print()
def __repr__(self): """String representation.""" s = super().__repr__() frame_name = self._data_frame.__class__.__name__ rep_name = self._data_rep.__name__ s = s.replace("StreamTrack", f"StreamTrack ({frame_name}|{rep_name})") s += "\n" + indent(repr(self._data)[1:-1]) return s
def describe(self): """ Prints out a human readable description """ print('Interface {}'.format(self._xsi_type)) accessurls = '\n'.join(accessurl.content for accessurl in self.accessurls) print(indent(accessurls)) print()
def describe(self): """ Prints out a human readable description """ print('Interface {}'.format(self._xsi_type)) accessurls = '\n'.join( accessurl.content for accessurl in self.accessurls) print(indent(accessurls)) print()
def describe(self): """ Prints out a human readable description """ super(TableAccess, self).describe() for datamodel in self.datamodels: datamodel.describe() for language in self.languages: language.describe() for outputformat in self.outputformats: outputformat.describe() for uploadmethod in self.uploadmethods: uploadmethod.describe() if self.retentionperiod: print("Time a job is kept (in seconds)") print(indent("Default {}".format(self.retentionperiod.default))) if self.retentionperiod.hard: print(indent("Maximum {}".format(self.retentionperiod.hard))) print() if self.executionduration: print("Maximal run time of a job") print(indent("Default {}".format(self.executionduration.default))) if self.executionduration.hard: print(indent("Maximum {}".format(self.executionduration.hard))) print() if self.outputlimit: print("Maximum size of resultsets") print( indent("Default {} {}".format(self.outputlimit.default.content, self.outputlimit.default.unit))) if self.outputlimit.hard: print( indent("Maximum {} {}".format( self.outputlimit.hard.content, self.outputlimit.hard.unit))) print() if self.uploadlimit: print("Maximal size of uploads") print( indent("Maximum {} {}".format(self.uploadlimit.hard.content, self.uploadlimit.hard.unit))) print()
def describe(self): """ Prints out a human readable description """ super(TableAccess, self).describe() for datamodel in self.datamodels: datamodel.describe() for language in self.languages: language.describe() for outputformat in self.outputformats: outputformat.describe() for uploadmethod in self.uploadmethods: uploadmethod.describe() if self.retentionperiod: print("Time a job is kept (in seconds)") print(indent("Default {}".format(self.retentionperiod.default))) if self.retentionperiod.hard: print(indent("Maximum {}".format(self.retentionperiod.hard))) print() if self.executionduration: print("Maximal run time of a job") print(indent("Default {}".format(self.executionduration.default))) if self.executionduration.hard: print(indent("Maximum {}".format(self.executionduration.hard))) print() if self.outputlimit: print("Maximum size of resultsets") print(indent("Default {} {}".format( self.outputlimit.default.content, self.outputlimit.default.unit)) ) if self.outputlimit.hard: print(indent("Maximum {} {}".format( self.outputlimit.hard.content, self.outputlimit.hard.unit)) ) print() if self.uploadlimit: print("Maximal size of uploads") print(indent("Maximum {} {}".format( self.uploadlimit.hard.content, self.uploadlimit.hard.unit))) print()
def describe(self): print(self.name) print(indent(self.description)) print()
_multibody_escape_wikipedia = indent( r""" When escaping a compound system, such as a moon orbiting a planet or a planet orbiting a sun, a rocket that leaves at escape velocity (ve1) for the first (orbiting) body, (e.g. Earth) will not travel to an infinite distance because it needs an even higher speed to escape gravity of the second body (e.g. the Sun). Near the Earth, the rocket's trajectory will appear parabolic, but it will still be gravitationally bound to the second body and will enter an elliptical orbit around that body, with an orbital speed similar to the first body. To escape the gravity of the second body once it has escaped the first body the rocket will need to be traveling at the escape velocity for the second body (ve2) (at the orbital distance of the first body). However, when the rocket escapes the first body it will still have the same orbital speed around the second body that the first body has (vo). So its excess velocity as it escapes the first body will need to be the difference between the orbital velocity and the escape velocity. With a circular orbit, escape velocity is sqrt(2) times the orbital speed. Thus the total escape velocity vte when leaving one body orbiting a second and seeking to escape them both is, under simplified assumptions: .. math:: v_{te}=\sqrt{(v_{e2} - v_o)^2 + v_{e1}^2} = \sqrt{\left(k v_{e2}\right)^2 + v_{e1}^2} where :math:`k=1−1/\sqrt{2} \sim 0.2929` for circular orbits. """, )