<jupyter_start><jupyter_text>Real Phantom   Phantom data module<jupyter_code>import sys
sys.path.append("./")
# Import the needed modules
from realphantom import random_realphantom, plot_WF, WFupdate

import matplotlib.pyplot as plt
import numpy.random as rnd
import numpy as np
import matplotlib.pyplot as plt<jupyter_output>../WF_inpaint/data/data_factory.py:7: UserWarning: 
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

The backend was *originally* set to 'module://ipykernel.pylab.backend_inline' by the following code:
  File "/homes/extern/andrade/store/miniconda3/envs/tf_gpu/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/homes/extern/andrade/store/miniconda3/envs/tf_gpu/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/homes/extern/andrade/store/miniconda3/envs/tf_gpu/lib/python3.6/site-packages/ipykernel_launcher.py", line 16, in <module>
    app.launch_new_instance()
  File "/homes/extern/andrade/store/miniconda3/envs/tf_gpu/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/homes/extern/andrade/[...]<jupyter_text>Real phantom with WFset generation<jupyter_code>size = 256
nClasses = 180
wedge = 10
nRegions = np.random.randint(5,10)
npoints_max = np.random.randint(8,15)
realphantom, WFpoints, WFclasses,  WFimage = random_realphantom(size, nRegions, npoints_max, nClasses)
plt.figure(figsize = (6,6))
plt.axis("off")
plt.imshow(realphantom, cmap="gray")
plt.figure(figsize = (6,6))
plt.axis("off")
plot_WF(WFimage)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12099043331457512, 'fraction_numerical': 0.023072594259988744, 'mean_word_length': 5.560885608856089, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '270167', 'license': 'MIT', 'n_tokens_mistral': 692, 'n_tokens_neox': 651, 'n_words': 136, 'path': 'Joint_CT_WFset_inpaint/RealPhantom.ipynb', 'repo_name': 'arsenal9971/DeeMicrolocalReconstruction', 'size': '1777'}