Skip to content

PNE-9755: Remove generative design and design space sampling - #1074

Merged
dleblanc merged 6 commits into
mainfrom
feature/PNE-9755-remove-generative-design-sampling
Nov 18, 2026
Merged

dleblanc merged 6 commits into
mainfrom
feature/PNE-9755-remove-generative-design-sampling

Conversation

@dleblanc

@dleblanc dleblanc commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Citrine Python PR

Description

This PR removes generative design and design space sampling from the SDK, for PNE-9755. platform-backend #6734 removes both features from the platform.

A script that uses either feature fails at its first use. The SDK raises FeatureRemovedError, and makes no network call first. The input classes, the enumerations, and the two accessors stay so that a script reaches that error, rather than failing on import. FeatureRemovedError also subclasses AttributeError, so hasattr() returns False for the two accessors.

Both features were effectively unused, so the version moves to 5.4.0 rather than 6.0.0.

PR Type:

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Maintenance (non-breaking change to assist developers)

Adherence to team decisions

  • I have added tests for 100% coverage
  • I have written Numpy-style docstrings for every method and class.
  • I have communicated the downstream consequences of the PR to others.
  • I have bumped the version in __version__.py

🤖 Generated with Claude Code

dleblanc and others added 3 commits November 12, 2026 14:25
The Citrine Platform has removed both features; their routes now return
410 Gone. The SDK drops the execution resources, result types and
waiting support, keeping only the names user scripts touch
(GenerativeDesignInput, FingerprintType, StructureExclusion,
SampleDesignSpaceInput, project.generative_design_executions and
design_space.sample_design_space_executions). Constructing an input or
reaching a collection raises FeatureRemovedError with the platform's own
message, without a network call.

Both features were effectively unused, so this is a minor bump to 5.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ve-generative-design-sampling-fixes

# Conflicts:
#	src/citrine/__version__.py
…ames

Version 5.3.x let scripts import the execution, result and collection
classes of both features. The first removal commit deleted them, so
those imports raised ImportError.

Every name a released version exported now imports again from its old
module. A module __getattr__ supplies each one and emits a
DeprecationWarning that names 6.0.0 as the removal version. The warning
points at the importing line, so Python shows it in a script by default.
Constructing a removed class, or reading a method from it, raises
FeatureRemovedError with the platform's message. FingerprintType and
StructureExclusion keep their members.

citrine._utils.removed_features holds the stand-ins. A test fails once
the version reaches 6.0.0, to prompt their deletion.

Version 5.4.0, after merging main at 5.3.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kroenlein and others added 3 commits November 18, 2026 08:53
…ve-generative-design-sampling-fixes

# Conflicts:
#	src/citrine/__version__.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ove-generative-design-sampling-fixes

[PNE-9755] Warn on import of removed generative design and sampling names

@kroenlein kroenlein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Presumably this is being communicated to our MIEs.

@anoto-moniz

@dleblanc
dleblanc marked this pull request as ready for review November 18, 2026 20:10
@dleblanc
dleblanc requested a review from a team as a code owner November 18, 2026 20:10
@dleblanc
dleblanc merged commit c710201 into main Nov 18, 2026
38 checks passed
@dleblanc
dleblanc deleted the feature/PNE-9755-remove-generative-design-sampling branch November 18, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants