Skip to content

Conversation

@niladrix719
Copy link
Member

@niladrix719 niladrix719 commented May 16, 2024

Updates and Bug fixes from the main Simulator

@netlify
Copy link

netlify bot commented May 16, 2024

Deploy Preview for circuitverse ready!

Name Link
🔨 Latest commit de610eb
🔍 Latest deploy log https://app.netlify.com/sites/circuitverse/deploys/66a9b333f8c3450008b9b8da
😎 Deploy Preview https://deploy-preview-314--circuitverse.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

simulationArea.simulationQueue.add(this.parent)
}
// For input nodes, resolve its parents if they are resolvable at this point.
if (this.type == NODE_INPUT) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INPUT' is not defined.
switch (node.type) {
// TODO: For an output node, a downstream value (value given by elements other than the parent)
// should be overwritten in contention check and should not cause contention.
case NODE_OUTPUT:

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_OUTPUT' is not defined.
)
}
// Fallthrough. NODE_OUTPUT propagates like a contention checked NODE_INPUT
case NODE_INPUT:

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INPUT' is not defined.
break;
}
// Fallthrough. NODE_INPUT propagates like a bitwidth checked NODE_INTERMEDIATE
case NODE_INTERMEDIATE:

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
uniqueIdCounter++
this.parent = parent
if (type != 2 && this.parent.nodeList !== undefined) {
if (type != NODE_INTERMEDIATE && this.parent.nodeList !== undefined) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
this.refresh()

if (this.type == 2) {
if (this.type == NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
*/
converToIntermediate() {
this.type = 2
this.type = NODE_INTERMEDIATE

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
*/
saveObject() {
if (this.type == 2) {
if (this.type == NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
updateScope(scope) {
this.scope = scope
if (this.type == 2) this.parent = scope.root
if (this.type == NODE_INTERMEDIATE) this.parent = scope.root

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
this.wasClicked = true
this.prev = 'a'
if (this.type == 2) {
if (this.type == NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
}
}
if (this.type == 2) {
if (this.type == NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
}

if (this.type == 2 && simulationArea.mouseDown == false) {
if (this.type == NODE_INTERMEDIATE && simulationArea.mouseDown == false) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
) {
n = this.parent.scope.allNodes[i]
if (this.type == 2) {
if (this.type == NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
if (this.parent.scope.wires[i].checkConvergence(this)) {
var n = this
if (this.type != 2) {
if (this.type != NODE_INTERMEDIATE) {

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments

'NODE_INTERMEDIATE' is not defined.
@niladrix719 niladrix719 marked this pull request as ready for review June 1, 2024 15:36
@niladrix719 niladrix719 added the GSOC'24 PR's for GSoC'24 label Jul 25, 2024
@tachyons
Copy link
Member

tachyons commented Jul 31, 2024

@niladrix719 I think this will undo some of the optimizations made by @JoshVarga . Why was this PR delayed ? you mentioned that all the updates from the legacy simulator are already copied, right ?

@tachyons tachyons requested a review from JoshVarga July 31, 2024 10:30
@niladrix719
Copy link
Member Author

@tachyons , I guess there was some miscommunication on my end. The PR was there way back but wasn't merged before

@tachyons
Copy link
Member

@niladrix719 Could you create separate PRs to copy changes. PR can't be reviewed in this form. Also give highest priority for this.

@tachyons tachyons closed this Jul 31, 2024
@niladrix719
Copy link
Member Author

niladrix719 commented Aug 1, 2024

created Separate PRs - #345, #346, #347, #348, #349, #350, #351, #352, #353, #354, #355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSOC'24 PR's for GSoC'24

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants