This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pptx import Presentation | |
import os | |
import copy | |
def move_slide(copyFromPres: Presentation, slideIndex: int, pasteIntoPres: Presentation): | |
"""Takes two Presentation objs and an index, copies the slide with index slideIndex from copyFromPres to | |
pasteIntoPres. | |
returns the slide if everything went well, but the first presentation will contain all the other one's slides | |
Thanks to https://stackoverflow.com/a/73954830/12380052 from which I copied the majority of this | |
""" | |
# modeled on https://stackoverflow.com/a/56074651/20159015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Pool | |
import pickle | |
from attilio.auto_picking import * | |
from tqdm.contrib.concurrent import process_map | |
# caricamento dati | |
def _traceback(D): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile with Splus SHLIB -o filename.so ph2simon.f .... | |
cThis code is a "subroutine" and is meant to be called within another function by the subroutine's name | |
c All the arguments inside the parentheses () should be given when the subroutine is called, and be of the right datatype | |
c c Define the inputs for this subroutine | |
subroutine f2bdry(m, nmax, ep1, ep2, p0, p1, cp0, cp1, bdry, peten, | |
1 nmax1, bprob0, bprob1) |