booldog.io.primes
Functions
|
Read primes from a dictionary or a json file |
|
Save primes as formatted JSON file. |
Module Contents
- booldog.io.primes.read_primes(primes_input)
Read primes from a dictionary or a json file
- Parameters:
primes_input (str or dict) – Dictionary of primes, or a file path to primes saved in JSON format.
- Returns:
rn – A BoolDog BoolDogModel object.
- Return type:
:py:class:BoolDogModel
- booldog.io.primes.write_primes(network, outfile)
Save primes as formatted JSON file. See also pyboolnet.file_exchange.write_primes.
- Parameters:
outfile (Path) – File name/path to write primes to.