Skip to content

Commit

Permalink
Fix entry points
Browse files Browse the repository at this point in the history
This fix has also been included in slackline's commit "Fixing entry points",
see pull request AFM-analysis#10 by ns-rse.
  • Loading branch information
janberges committed Mar 16, 2024
1 parent 283ea7b commit 872648a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions igor2/cli/igorbinarywave.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def _run(self, args):
wave['wave'].pop('wData')
pprint.pprint(wave)

def main():
s = WaveScript(description=__doc__)
s.run()

s = WaveScript(description=__doc__)
s.run()
if __name__ == '__main__':
main()
9 changes: 6 additions & 3 deletions igor2/cli/igorpackedexperiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def _plot_wave_callback(self, dirpath, key, value):
if isinstance(value, WaveRecord):
self.plot_wave(self.args, value.wave, title=dirpath + [key])

def main():
s = PackedScript(
description=__doc__, filetype='IGOR Packed Experiment (.pxp) file')
s.run()

s = PackedScript(
description=__doc__, filetype='IGOR Packed Experiment (.pxp) file')
s.run()
if __name__ == '__main__':
main()
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ CLI = [
]

[project.scripts]
igorbinarywave = 'igor2.cli:igorbinarywave'
igorpackedexperiment = 'igor2.cli:igorpackedexperiment'
igorbinarywave = 'igor2.cli.igorbinarywave:main'
igorpackedexperiment = 'igor2.cli.igorpackedexperiment:main'

[tool.setuptools]
packages = ["igor2"]
Expand Down

0 comments on commit 872648a

Please sign in to comment.