Skip to content

Commit

Permalink
numpydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkes committed Oct 7, 2024
1 parent 1943f26 commit 4775ab5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/pyhaloxml/HaloXML.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
A package for parsing .annotations files from Halo.
It can load .annotation files and store them as .geojson. The geojson will be QuPath compatible.
Examples
--------
Converting an annotations file to geojson:
>>> from pyhaloxml import HaloXML
>>> hx = HaloXML()
>>> hx.load(r'c:\\test.annotations')
>>> hx.matchnegative()
>>> hx.to_geojson(r'c:\\test.geojson')
Using the contextmanager to do the same thing:
>>> from pyhaloxml import HaloXMLFile
>>> with HaloXML(r'c:\\test.annotations') as hx:
>>> hx.matchnegative()
>>> hx.to_geojson(r'c:\\test.geojson')
"""

import io
Expand Down

0 comments on commit 4775ab5

Please sign in to comment.