cinemascience / pycinema

cinema engine toolkit
Other
1 stars 4 forks source link

execution of simple pycinema script fails #115

Closed dhrogers closed 2 months ago

dhrogers commented 6 months ago

The following simple script, saved in a file called 'simple.py' cannot be executed with the command 'python simple.py'. It appears that the new architecture requires Theater or other classes in order to execute.

We should be able to execute scripts that do not require the UI.

import pycinema
import pycinema.filters

# filters
CinemaDatabaseReader_0 = pycinema.filters.CinemaDatabaseReader()

# properties
CinemaDatabaseReader_0.inputs.path.set("data/sphere.cdb", False)
CinemaDatabaseReader_0.inputs.file_column.set("FILE", False)

# execute pipeline
CinemaDatabaseReader_0.update()
dhrogers commented 2 months ago

Obsolete.