Skip to content

Commit

Permalink
Edit dir creation records to standard to fix PVI output (#128)
Browse files Browse the repository at this point in the history
* Edit dir creation records to standard to fix PVI output
  • Loading branch information
jwlodek authored Aug 12, 2024
1 parent 5309422 commit 4f9247d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pandablocks_ioc/_hdf_ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __init__(
record_prefix + ":" + self.DATA_PREFIX + ":HDFDirectory"
)

create_directory_record_name = EpicsName(self.DATA_PREFIX + ":CreateDirectory")
create_directory_record_name = EpicsName(self.DATA_PREFIX + ":CREATE_DIRECTORY")
self._create_directory_record = builder.longOut(
create_directory_record_name,
initial_value=0,
Expand All @@ -441,10 +441,10 @@ def __init__(
builder.longOut,
)
self._create_directory_record.add_alias(
record_prefix + ":" + create_directory_record_name.upper()
record_prefix + ":" + self.DATA_PREFIX + ":CreateDirectory"
)

directory_exists_name = EpicsName(self.DATA_PREFIX + ":DirectoryExists")
directory_exists_name = EpicsName(self.DATA_PREFIX + ":DIRECTORY_EXISTS")
self._directory_exists_record = builder.boolIn(
directory_exists_name,
ZNAM="No",
Expand All @@ -459,7 +459,7 @@ def __init__(
builder.boolIn,
)
self._directory_exists_record.add_alias(
record_prefix + ":" + directory_exists_name.upper()
record_prefix + ":" + self.DATA_PREFIX + ":DirectoryExists"
)

file_name_record_name = EpicsName(self.DATA_PREFIX + ":HDF_FILE_NAME")
Expand Down
8 changes: 4 additions & 4 deletions tests/test-bobfiles/DATA.bob
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
</widget>
<widget type="label" version="2.0.0">
<name>Label</name>
<text>Createdirectory</text>
<text>Create Directory</text>
<x>0</x>
<y>25</y>
<width>250</width>
<height>20</height>
</widget>
<widget type="textentry" version="3.0.0">
<name>TextEntry</name>
<pv_name>TEST_PREFIX:DATA:CreateDirectory</pv_name>
<pv_name>TEST_PREFIX:DATA:CREATE_DIRECTORY</pv_name>
<x>255</x>
<y>25</y>
<width>205</width>
Expand All @@ -69,15 +69,15 @@
</widget>
<widget type="label" version="2.0.0">
<name>Label</name>
<text>Directoryexists</text>
<text>Directory Exists</text>
<x>0</x>
<y>50</y>
<width>250</width>
<height>20</height>
</widget>
<widget type="textupdate" version="2.0.0">
<name>TextUpdate</name>
<pv_name>TEST_PREFIX:DATA:DirectoryExists</pv_name>
<pv_name>TEST_PREFIX:DATA:DIRECTORY_EXISTS</pv_name>
<x>255</x>
<y>50</y>
<width>205</width>
Expand Down

0 comments on commit 4f9247d

Please sign in to comment.