Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
include LICENSE

# Include the data files
recursive-include data *
recursive-include docs *
recursive-include pytac/data *
recursive-include docs *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pytac/load_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load(mode, control_system=None, directory=None):
from pytac import epics
control_system = epics.EpicsControlSystem()
if directory is None:
directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'data')
directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
lat = lattice.Lattice(mode, control_system, 3000)
with open(os.path.join(directory, mode, 'elements.csv')) as elements:
csv_reader = csv.DictReader(elements)
Expand Down
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.0.3',
version='0.1',

description='Python Toolkit for Accelerator Controls (Pytac) is a Python library intended to make it easy to work with particle accelerators.',
long_description=long_description,
Expand Down Expand Up @@ -60,17 +60,12 @@
'Programming Language :: Python :: 3.6',
],

# What does your project relate to?
keywords='accelerator physics development',
keywords='accelerator physics',

# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
# packages=find_packages['pytac', 'test']),
packages=['pytac'],

# Alternatively, if you want to distribute just a my_module.py, uncomment
# this:
# py_modules=["my_module"],
# We need to use files from inside the package, so don't zip
include_package_data=True,
zip_safe=False,

# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
Expand Down
3 changes: 1 addition & 2 deletions test/test_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
def get_lattice(ring_mode):
""" Load the entire lattice from the data directory. """
basepath = os.getcwd()
filename = os.path.join(basepath, 'data/')
lattice = pytac.load_csv.load(ring_mode, mock.MagicMock(), filename)
lattice = pytac.load_csv.load(ring_mode, mock.MagicMock())
return lattice


Expand Down