stringforge.cy_io.TDFDatabase

Contents

stringforge.cy_io.TDFDatabase#

class stringforge.cy_io.TDFDatabase(hf_repo='aschachner/cy-database', cache_dir=None, offline=False, cache_mode='persistent', shard_cache_size=32, dataset=None)#

Bases: CYDatabase

Convenience subclass of CYDatabase pre-configured for the "tdf" sub-dataset (toric models from the Kreuzer-Skarke list).

Models are identified by (ks_id, triang_id) in catalogue convention.

Example usage:

db = TDFDatabase()
rows = db.query(h11=2, has_conifolds=True)
poly = db.get_polytope(ks_id=int(rows.iloc[0]["ks_id"]), h11=2)

See the module page for the curated public method index. The class page is kept as the canonical object target for cross-references and the general index.