Compare commits
No commits in common. "441110afd67328c3bf1b5d1771d45b26786e0a88" and "028deaa2cea926d281d8252853266149c04aa23c" have entirely different histories.
441110afd6
...
028deaa2ce
13
README.md
13
README.md
@ -153,8 +153,7 @@ python3 -m pip install IMCtermite
|
|||||||
which provides binary wheels for multiple architectures on _Windows_ and _Linux_
|
which provides binary wheels for multiple architectures on _Windows_ and _Linux_
|
||||||
and most _Python 3.x_ distributions. However, if your platform/architecture is
|
and most _Python 3.x_ distributions. However, if your platform/architecture is
|
||||||
not supported you can still compile the source distribution yourself, which
|
not supported you can still compile the source distribution yourself, which
|
||||||
requires _python3_setuptools_ and an up-to-date compiler supporting C++11
|
requires _python3_setuptools_ and _gcc version >= 10.2.0_.
|
||||||
standard (e.g. _gcc version >= 10.2.0_).
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -190,23 +189,23 @@ options `imctermite sample-data.raw -b -c -s '|'`.
|
|||||||
|
|
||||||
### Python
|
### Python
|
||||||
|
|
||||||
Given the `IMCtermite` module is available, we can import it and declare an instance
|
Given the `imctermite` module is available, we can import it and declare an instance
|
||||||
of it by passing a _raw_ file to the constructor:
|
of it by passing a _raw_ file to the constructor:
|
||||||
|
|
||||||
```Python
|
```Python
|
||||||
import IMCtermite
|
import imc_termite
|
||||||
|
|
||||||
imcraw = IMCtermite.imctermite(b"sample/sampleA.raw")
|
imcraw = imc_termite.imctermite(b"sample/sampleA.raw")
|
||||||
```
|
```
|
||||||
|
|
||||||
An example of how to create an instance and obtain the list of channels is:
|
An example of how to create an instance and obtain the list of channels is:
|
||||||
|
|
||||||
```Python
|
```Python
|
||||||
import IMCtermite
|
import imc_termite
|
||||||
|
|
||||||
# declare and initialize instance of "imctermite" by passing a raw-file
|
# declare and initialize instance of "imctermite" by passing a raw-file
|
||||||
try :
|
try :
|
||||||
imcraw = IMCtermite.imctermite(b"samples/sampleA.raw")
|
imcraw = imc_termite.imctermite(b"samples/sampleA.raw")
|
||||||
except RuntimeError as e :
|
except RuntimeError as e :
|
||||||
print("failed to load/parse raw-file: " + str(e))
|
print("failed to load/parse raw-file: " + str(e))
|
||||||
|
|
||||||
|
2
makefile
2
makefile
@ -31,7 +31,7 @@ INST := /usr/local/bin
|
|||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
# C++ and CLI tool
|
# C++ and CLI tool
|
||||||
|
|
||||||
# build executable
|
# build exectuable
|
||||||
$(EXE): check-tags $(GVSN) main.o
|
$(EXE): check-tags $(GVSN) main.o
|
||||||
$(CC) $(OPT) main.o -o $@
|
$(CC) $(OPT) main.o -o $@
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.3
|
2.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user