Reference¶
ImxSingleFile
¶
Represents an IMX file that contains project situations or just a situation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
imx_file_path |
Path | str
|
Path to the IMX container. |
required |
Attributes:
Name | Type | Description |
---|---|---|
file |
ImxFile
|
The IMX file. |
situation |
ImxSituation | None
|
The IMX Situation. |
new_situation |
ImxSituation | None
|
The IMX NewSituation. |
initial_situation |
ImxSituation | None
|
The IMX InitialSituation. |
ImxSituation
¶
Bases: ImxRepo
Represents a IMX Situation.
Attributes:
Name | Type | Description |
---|---|---|
situation_type |
ImxSituationEnum
|
imx situation Type |
get_all()
¶
find(key)
¶
get_types()
¶
get_by_types(object_types)
¶
get_all_paths()
¶
get_by_paths(object_paths)
¶
get_keys()
¶
get_build_exceptions()
¶
todo: make docs
get_pandas_df(object_type_or_path=None, puic_as_index=True)
¶
Get Pandas dataframe of one value object type or limited view of all objects.
When using an object type or path, all properties will be flattened. When getting a dataframe of all objects, most attributes will be stripped except for some metadata. In both cases, it will include parent puic, path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
object_type_or_path |
str | None
|
path or imx type to get df of |
None
|
puic_as_index |
bool
|
if true puic value will be the index |
True
|
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: pandas dataframe of the object properties |
ImxSituationEnum
¶
Valid situations in a imx project file.
InitialSituation = 'InitialSituation'
class-attribute
instance-attribute
¶
The initial situation in a imx project file.
NewSituation = 'NewSituation'
class-attribute
instance-attribute
¶
The initial situation in a imx project file.
Situation = 'Situation'
class-attribute
instance-attribute
¶
A situation in a imx situation file.