This file contains hidden or 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 enum import Enum | |
| from typing import Optional | |
| import pydantic.main | |
| from pydantic import Field, BaseModel | |
| class AllOptionalMetaclass(pydantic.main.ModelMetaclass): | |
| .... |
This file contains hidden or 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
| import re | |
| # Invalid chars was taken from Antares Simulator (C++). | |
| _sub_invalid_chars = re.compile(r"[^a-zA-Z0-9_(),& -]+").sub | |
| def transform_name_to_id(name: str, lower: bool = True) -> str: | |
| """ | |
| Transform a name into an identifier by replacing consecutive | |
| invalid characters by a single white space, and then whitespaces |
This file contains hidden or 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
| import json | |
| import multiprocessing | |
| import sys | |
| import time | |
| import typing as t | |
| import typing_extensions as te | |
| from pathlib import Path | |
| import numpy as np | |
| import pandas as pd |
OlderNewer