Skip to content

Commit

Permalink
fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Jul 24, 2017
1 parent e513796 commit 553742e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions t.vect.in.sos/t.vect.in.sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,27 +201,27 @@ def main():
def get_description(service):
if flags['o'] is True:
if flags['g'] is False:
print('\nSOS offerings:')
print('SOS offerings:')
for offering in service.offerings:
print(offering.name)
print(offering.id)

if flags['v'] is True:
if flags['g'] is False:
print('\nObserved properties of '
print('Observed properties of '
'{} offering:'.format(options['offering']))
for observed_property in service[
options['offering']].observed_properties:
print(observed_property)

if flags['p'] is True:
if flags['g'] is False:
print('\nProcedures of {} offering:'.format(options['offering']))
print('Procedures of {} offering:'.format(options['offering']))
for procedure in service[options['offering']].procedures:
print(procedure)
print(procedure.split(':')[-1])

if flags['t'] is True:
if flags['g'] is False:
print('\nBegin timestamp, end timestamp of '
print('Begin timestamp, end timestamp of '
'{} offering:'.format(options['offering']))
print('{}, {}'.format(service[options['offering']].begin_position,
service[options['offering']].end_position))
Expand Down
12 changes: 6 additions & 6 deletions v.in.sos/v.in.sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,27 +203,27 @@ def main():
def get_description(service):
if flags['o'] is True:
if flags['g'] is False:
print('\nSOS offerings:')
print('SOS offerings:')
for offering in service.offerings:
print(offering.name)
print(offering.id)

if flags['v'] is True:
if flags['g'] is False:
print('\nObserved properties of '
print('Observed properties of '
'{} offering:'.format(options['offering']))
for observed_property in service[
options['offering']].observed_properties:
print(observed_property)

if flags['p'] is True:
if flags['g'] is False:
print('\nProcedures of {} offering:'.format(options['offering']))
print('Procedures of {} offering:'.format(options['offering']))
for procedure in service[options['offering']].procedures:
print(procedure)
print(procedure.split(':')[-1])

if flags['t'] is True:
if flags['g'] is False:
print('\nBegin timestamp, end timestamp of '
print('Begin timestamp, end timestamp of '
'{} offering:'.format(options['offering']))
print('{}, {}'.format(service[options['offering']].begin_position,
service[options['offering']].end_position))
Expand Down

0 comments on commit 553742e

Please sign in to comment.