metafold 0.13.dev3__py3-none-any.whl → 0.13.dev4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metafold/projects.py +3 -1
- metafold/simulation/compression_simulation.py +2 -1
- {metafold-0.13.dev3.dist-info → metafold-0.13.dev4.dist-info}/METADATA +1 -1
- {metafold-0.13.dev3.dist-info → metafold-0.13.dev4.dist-info}/RECORD +7 -7
- {metafold-0.13.dev3.dist-info → metafold-0.13.dev4.dist-info}/WHEEL +0 -0
- {metafold-0.13.dev3.dist-info → metafold-0.13.dev4.dist-info}/licenses/LICENSE +0 -0
- {metafold-0.13.dev3.dist-info → metafold-0.13.dev4.dist-info}/top_level.txt +0 -0
metafold/projects.py
CHANGED
|
@@ -13,9 +13,11 @@ class Access(Enum):
|
|
|
13
13
|
Attributes:
|
|
14
14
|
PRIVATE: Project is private to owner.
|
|
15
15
|
PUBLIC: Project may be accessed by unauthenticated users.
|
|
16
|
+
ORG: Project may be accessed by members of the same organization.
|
|
16
17
|
"""
|
|
17
18
|
PRIVATE = "private"
|
|
18
19
|
PUBLIC = "public"
|
|
20
|
+
ORG = "org"
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
class ProjectType(Enum):
|
|
@@ -65,7 +67,7 @@ class Project:
|
|
|
65
67
|
access: Access = field(converter=check_access)
|
|
66
68
|
created: datetime = field(converter=asdatetime)
|
|
67
69
|
modified: datetime = field(converter=asdatetime)
|
|
68
|
-
type: ProjectType = field(converter=check_project_type, default=ProjectType.UNSPECIFIED)
|
|
70
|
+
type: ProjectType = field(converter=check_project_type, default=ProjectType.UNSPECIFIED)
|
|
69
71
|
thumbnail: str | None = None
|
|
70
72
|
project: dict[str, Any] | None = None
|
|
71
73
|
graph: dict[str, Any] | None = None
|
|
@@ -611,6 +611,7 @@ class CompressionSimulation:
|
|
|
611
611
|
auth_domain: str = "metafold3d.us.auth0.com",
|
|
612
612
|
base_url: str = "https://api.metafold3d.com/",
|
|
613
613
|
cancel_existing_workflows: bool = True,
|
|
614
|
+
project_access: Access = Access.PRIVATE,
|
|
614
615
|
) -> str:
|
|
615
616
|
"""Find an existing project by name or create a new one.
|
|
616
617
|
|
|
@@ -642,7 +643,7 @@ class CompressionSimulation:
|
|
|
642
643
|
return project_id
|
|
643
644
|
created = client.projects.create(
|
|
644
645
|
project_name,
|
|
645
|
-
access=
|
|
646
|
+
access=project_access,
|
|
646
647
|
type=ProjectType.DIGITAL_TEST_BENCH_EXPERIMENT,
|
|
647
648
|
)
|
|
648
649
|
return created.id
|
|
@@ -6,15 +6,15 @@ metafold/client.py,sha256=ZFftCr5gbRFkrxgBK7NYspBQEQnNzj2tWCbjPqxg5gw,3714
|
|
|
6
6
|
metafold/exceptions.py,sha256=dJhBgbryBhJUf20FT3eU1rjQJQ-aDEZ25g-YCn_TwQk,110
|
|
7
7
|
metafold/jobs.py,sha256=DxpQ9yrN7Th67XyW8UqjAIX0wfhwgPPCA9mNSKG_Z_Y,7029
|
|
8
8
|
metafold/materials.py,sha256=QwCWNvF3iR7WzUKq4Q9T6wIRK4_YW1UNOJ_FiC8AVY0,13564
|
|
9
|
-
metafold/projects.py,sha256=
|
|
9
|
+
metafold/projects.py,sha256=uZZOuXe80F53SZ5ZFpxFYhhMnfgd4SpPaFgkKTSZvTo,6384
|
|
10
10
|
metafold/utils.py,sha256=DnsW1Xr9mLpVHBNdPrdxNLLcjxSNMkWVvr7cH7UTAxY,1174
|
|
11
11
|
metafold/workflows.py,sha256=Mhv3n3ChUHw1Vaj3q8HNDbOgljn03AF6WslZfXzexsI,7802
|
|
12
12
|
metafold/simulation/__init__.py,sha256=tUW4PfyWnI6UFvIR__JKUD2FjNTM74fSeKuee7Ewjfo,816
|
|
13
13
|
metafold/simulation/compression_experiment.py,sha256=kLtX6V4vc_v2l-mJqpkE29TWE-fb6fCudOqhxv1Bz9U,18442
|
|
14
|
-
metafold/simulation/compression_simulation.py,sha256=
|
|
14
|
+
metafold/simulation/compression_simulation.py,sha256=92AOPSfVOrwZ4lmU3n42TChsbP2BfUoNMwQQiesjTeg,118257
|
|
15
15
|
metafold/simulation/run_experiment.py,sha256=_TRsm6pHtHCLBlw8wqiN9WcvoAwmI0APPru-0Nj2QJw,17533
|
|
16
|
-
metafold-0.13.
|
|
17
|
-
metafold-0.13.
|
|
18
|
-
metafold-0.13.
|
|
19
|
-
metafold-0.13.
|
|
20
|
-
metafold-0.13.
|
|
16
|
+
metafold-0.13.dev4.dist-info/licenses/LICENSE,sha256=LejZXzGwe9t0Ezk6g0bRmWUuFSI9vQSk1wJAc1NrrhE,1059
|
|
17
|
+
metafold-0.13.dev4.dist-info/METADATA,sha256=CKqp1Jww1LDFry1mUpP4FVmh0AbhB1WmqYbiDIQ4tL0,3495
|
|
18
|
+
metafold-0.13.dev4.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
19
|
+
metafold-0.13.dev4.dist-info/top_level.txt,sha256=0dvwa2N6gvl2x4T9c62V4MbYD2soFedI6hm3-lWgyew,9
|
|
20
|
+
metafold-0.13.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|