Browse Source

Name change vex->pyvexfile

master
Benito Marcote 1 year ago
parent
commit
49bcfb65a2
  1. 4
      README.md
  2. 10
      pyvexfile.py
  3. 4
      setup.py

4
README.md

@ -1,4 +1,4 @@
# Vexfile
# pyVexfile
The vex module is a parser for VEX files that is written completely in Python. It parses a VEX file into a Vex object,
storing all the inputs as an (ordered) dictionary structure. This module does not validate the VEX file, in particular it does not check if the block names and parameter names are actually defined by the VEX standard (https://vlbi.org/vex). All parameters are stored as strings, without further evaluation.
@ -20,5 +20,3 @@ v['STATION']['Jb']...
```
Note that all comments from the VEX file are kept, and will be shown as different entries named 'comment-##', where ## is the number of the comment line within the respective section/definition.

10
vexfile.py → pyvexfile.py

@ -11,7 +11,7 @@ All parameters are stored as strings, without further evaluation.
Usage
-----
import vex
import pyvexfile as vex
v = vex.Vex(vexfilename)
@ -654,12 +654,6 @@ class Vex:
# def Vex(file):
# fp = open(file, 'r')
# vex = fp.read()
@ -669,3 +663,5 @@ class Vex:
if __name__ == '__main__':
print(Vex(sys.argv[1]))

4
setup.py

@ -1,5 +1,5 @@
from distutils.core import setup
setup(name'vex', version='1.1', description='VEX parser',
setup(name'pyvexfile', version='1.1', description='VEX file parser',
author='Benito Marcote', author_email='marcote@jive.eu',
py_modules=['vex'])
py_modules=['pyvexfile'])

Loading…
Cancel
Save