Skip to content

Commit 3eb5a15

Browse files
committed
Merge branch 'develop' of https://github.com/febiosoftware/FEBioStudio into develop
2 parents f06ed0c + cdfc62f commit 3eb5a15

38 files changed

Lines changed: 263 additions & 2133 deletions

.github/workflows/linux-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
package-name: febio-studio
1717
requires-sdk: true
18-
python-module: true
1918
publish: true
2019
aws-ami-id: ${{ vars.LINUX_AMI }}
2120
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - Linux Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
jobs:
12+
call_workflow:
13+
uses: febiosoftware/febio-workflows/.github/workflows/linux-reusable.yml@develop
14+
with:
15+
package-name: python-module
16+
python-module: true
17+
publish: true
18+
aws-ami-id: ${{ vars.LINUX_AMI }}
19+
build-script: buildPython.sh
20+
secrets: inherit

.github/workflows/macos-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ jobs:
1717
package-name: febio-studio
1818
requires-sdk: true
1919
post-build: true
20-
python-module: true
2120
publish: true
2221
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - macOS Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
12+
jobs:
13+
call_workflow:
14+
uses: febiosoftware/febio-workflows/.github/workflows/macos-reusable.yml@develop
15+
with:
16+
package-name: python-module
17+
python-module: true
18+
publish: true
19+
build-script: buildPython.sh
20+
secrets: inherit
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI - Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
dispatch-python-workflow:
8+
name: "Repository dispatch Python workflow"
9+
runs-on: "ubuntu-latest"
10+
steps:
11+
- name: "Dispatch repository with python-module"
12+
uses: febiosoftware/febio-workflows/.github/actions/repository-dispatch@develop
13+
with:
14+
github-pat-token: ${{ secrets.GITHUB_TOKEN }}
15+
repository: "febiosoftware/FEBioStudio"
16+
client-payload: "client_payload[ref_name]=${{ github.ref_name }}"
17+
event-type: python-module

.github/workflows/windows-push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
package-name: febio-studio
1717
requires-sdk: true
18-
python-module: true
1918
publish: true
2019
aws-ami-id: ${{ vars.WINDOWS_AMI }}
2120
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI - Windows Python Module
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [release-published, python-module]
7+
8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
contents: read # This is required for actions/checkout
11+
jobs:
12+
call_workflow:
13+
uses: febiosoftware/febio-workflows/.github/workflows/windows-reusable.yml@develop
14+
with:
15+
package-name: python-module
16+
python-module: true
17+
publish: true
18+
aws-ami-id: ${{ vars.WINDOWS_AMI }}
19+
build-script: buildPython.bat
20+
secrets: inherit

FEBioLink/FEBioClass.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ FEBioClassInfo FEBio::GetClassInfo(int classId)
366366
ci.classId = classId;
367367
ci.baseClassId = baseClassIndex(fac->GetBaseClassName());
368368
ci.sztype = fac->GetTypeStr();
369-
ci.szmod = fecore.GetModuleName(modId);
369+
ci.szmod = fecore.GetModuleName(modId - 1);
370+
ci.superClassName = FECoreKernel::SuperClassString(fac->GetSuperClassID());
370371
ci.spec = fac->GetSpecID();
371372
ci.allocId = fac->GetAllocatorID();
372373

@@ -438,6 +439,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllClasses(int mod, int superId, i
438439
fac->GetTypeStr(),
439440
fac->GetClassName(),
440441
szmod,
442+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
441443
fac->GetSpecID() };
442444
facs.push_back(febc);
443445
}
@@ -481,6 +483,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllClasses(int mod, int superId, i
481483
fac->GetTypeStr(),
482484
fac->GetClassName(),
483485
szmod,
486+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
484487
fac->GetSpecID() };
485488
facs.push_back(febc);
486489
}
@@ -508,6 +511,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllPluginClasses(int allocId)
508511
fac->GetTypeStr(),
509512
fac->GetClassName(),
510513
szmod,
514+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
511515
fac->GetSpecID()
512516
};
513517
facs.push_back(febc);

FEBioLink/FEBioClass.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ namespace FEBio {
108108
int baseClassId; // base class index
109109
const char* sztype; // the type string
110110
const char* szclass; // the (C++) class name
111+
const char* superClassName; // the super class name
111112
const char* szmod; // the module name
112113
int spec; // spec ID (i.e. FEBio file version)
113114
int allocId; // allocator ID

FEBioStudio/DlgAddPhysicsItem.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ SOFTWARE.*/
4343
#include <FEBioLink/FEBioClass.h>
4444
#include <FEBioLink/FEBioModule.h>
4545
#include <FSCore/FSCore.h>
46-
#include "HelpUrl.h"
47-
48-
#include <iostream>
4946

5047
using namespace std;
5148

@@ -229,25 +226,18 @@ int CDlgAddPhysicsItem::GetClassID()
229226
return (it ? it->data(0, Qt::UserRole).toInt() : -1);
230227
}
231228

232-
void CDlgAddPhysicsItem::SetURL()
229+
void CDlgAddPhysicsItem::UpdateHelpURL()
233230
{
234231
if(ui->type->selectedItems().size() > 0)
235232
{
236-
237233
int classID = ui->type->currentItem()->data(0, Qt::UserRole).toInt();
238234

239-
const char* typeString = FEBio::GetClassInfo(classID).sztype;
240-
241-
m_url = GetHelpURL(ui->m_superID, typeString);
235+
SetURL(classID);
242236
}
243237
else
244238
{
245-
m_url = UNSELECTED_HELP;
239+
SetURL(-1);
246240
}
247-
248-
// cout << "SUPERID " << ui->m_superID << endl;
249-
250-
// FECoreKernel::GetInstance().List((SUPER_CLASS_ID) ui->m_superID);
251241
}
252242

253243
class UIDlgCopyPhysicsItem

0 commit comments

Comments
 (0)